var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ca,ea,aaa,ka,la,ma,na,qa,ra,ta,baa,caa,Aa,Ba,daa,eaa,Ea,Fa,Ga,Ha,Ia,Ma,Na,gaa,haa,Xa,Ya,Za,$a,ab,bb,iaa,cb,db,ib,jb,tb,wb,yb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Lb,Kb,Mb,laa,maa,Nb,Ob,Pb,Rb,Sb,Tb,Ub,Vb,naa,Yb,dc,oaa,kc,paa,pc,mc,qaa,nc,raa,saa,taa,vc,wc,xc,yc,Lc,Nc,Jc,Fc,Qc,Uc,Wc,Yc,$c,bd,ad,cd,hd,nd,od,rd,qd,td,ud,zd,Ad,Cd,Dd,Ed,Fd,Gd,yaa,Kd,Md,Nd,zaa,Qd,Rd,Sd,Td,Ud,Vd,Yd,Zd,$d,ae,ce,de,be,ee,Aaa,ie,je,ke,le,oe,pe,re,ve,we,xe,ye,ze,Ae,Be,Ce,Ee,Ge,He,Baa,Ke,Le,Oe,Qe,Te,Caa,Daa,Ue,Me,Ne,Eaa,Faa, Gaa,Haa,Xe,Iaa,Jaa,Kaa,Laa,Re,Se,Ye,hf,Maa,Naa,jf,kf,Oaa,mf,Paa,nf,Qaa,of,Raa,vf,wf,xf,yf,Saa,Df,Ff,Hf,If,Kf,Uaa,Lf,Of,Qf,Vf,Wf,$f,ag,kg,lg,ng,rg,Vaa,og,Ag,Cg,ug,Xaa,sg,qg,Gg,Hg,Ig,Jg,Yaa,Lg,Mg,Zaa,Og,Rg,Sg,Vg,Xg,Yg,bba,Zg,ch,hh,ih,fba,gba,eba,hba,mba,nba,ph,sh,pba,qba,rh,rba,sba,vh,wh,wba,Ah,Ch,Fh,Hh,Kh,Lh,xba,yba,zba,Aba,Oh,Cba,Th,Eba,Gba,Fba,Uh,Wh,Hba,Vh,Iba,Nh,fi,Kba,hi,gi,Mh,ji,Lba,Mba,ki,li,Nba,Pba,pi,Rba,si,ti,ui,Vba,wi,Wba,vi,$ba,qi,Tba,bca,Zba,Xba,Yba,cca,aca,xi,Ai,eca,fca,gca,hca,ica,jca, lca,oca,qca,rca,tca,sca,uca,Hi,Ii,Ji,wca,xca,Ki,Li,Mi,zca,Pi,Aca,Dca,Ri,Si,Eca,Ti,Ui,Gca,Hca,Yi,Ica,Jca,Zi,$i,Kca,bj,qj,Lca,rj,sj,Oca,Pca,Rca,Sca,Uca,Tca,Vca,uj,Wca,yj,Yca,Zca,xj,Cj,ada,Dj,Ej,dda,fda,gda,Hj,ida,jda,kda,mda,lda,nda,hda,Gj,oda,Ij,pda,qda,rda,sda,Jj,Kj,Lj,Mj,Nj,tda,uda,Oj,Qj,vda,wda,Rj,xda,Sj,yda,zda,Ada,Uj,Bda,Dda,Cda,Eda,Fda,Gda,Wj,Xj,Yj,Hda,Ida,Kda,Lda,ak,bk,ck,dk,Mda,ek,fk,gk,hk,ik,Rda,Oda,lk,Qda,mk,Pda,kk,jk,ok,Sda,qk,pk,Tda,Uda,wk,xk,zk,Xda,yk,Ck,Yda,Dk,Vda,aea,bea,cea,Hk,Ik,Jk, dea,Rk,Sk,Tk,Uk,eea,Xk,Yk,Zk,fea,gea,$k,hea,Zj,kea,lea,mea,nea,iea,al,oea,cl,pea,bl,qea,rea,el,fl,sea,hl,il,jl,gl,kl,dl,uea,vea,tea,wea,xea,yea,ll,ml,nl,ol,pl,ql,rl,zea,sl,tl,ul,Aea,Cea,Dea,wl,yl,xl,Fea,Al,Gea,Bl,Hea,Iea,Cl,Dl,El,Kea,Mea,Pea,Nea,Qea,Uea,Fl,Tea,Rea,Gl,Hl,Vea,Il,Xea,Wea,Jl,Zea,Yea,$ea,afa,Nl,Ol,bfa,cfa,dfa,Pl,efa,hfa,ifa,Rl,jfa,kfa,pfa,Sl,Tl,qfa,rfa,sfa,tfa,Vl,ufa,vfa,wfa,gm,em,dm,xfa,yfa,zfa,hm,im,jm,Bfa,tm,um,vm,wm,xm,ym,Dfa,Efa,Ffa,zm,Bm,Cm,Gm,Hm,Km,Hfa,Jfa,Ifa,Kfa,Lfa,Qm,Mfa,Nfa, Rm,Ofa,Pfa,Qfa,Rfa,Vm,Tm,Wm,Xm,Ym,Sfa,Tfa,Ufa,Zm,$m,an,Vfa,Wfa,Xfa,bn,Yfa,cn,dn,Zfa,$fa,aga,cga,dga,ega,fga,fn,gn,hn,kn,iga,ln,mn,jga,hga,jn,kga,nn,on,pn,qn,mga,rn,tn,sn,nga,oga,pga,un,rga,vn,tga,uga,vga,wga,xga,yga,zga,Aga,yn,zn,An,Cga,Bga,Cn,Dga,Dn,Ega,En,Fga,Gga,Fn,Gn,Hn,Hga,In,Jn,Kn,Yn,Zn,$n,ao,bo,co,Iga,Jga,Kga,Lga,eo,Mga,Oga,Nga,go,ho,Qga,Pga,Vga,Uga,io,Wga,Xga,Yga,$ga,Zga,aha,jo,bha,cha,lo,dha,eha,fha,gha,mo,hha,no,iha,oo,po,kha,qo,lha,ro,so,mha,nha,to,vo,pha,wo,oha,qha,rha,sha,uha,yo,vha, Bo,Co,xha,yha,Bha,Cha,Do,Dha,Eo,Fo,Go,Ho,Io,Jo,Ko,Lo,Mo,No,Oo,Po,Qo,Hha,Gha,Iha,Kha,Jha,Mha,Fha,Lha,Eha,Ro,So,Oha,Pha,Qha,Wo,Xo,Yo,To,Sha,Zo,Nha,Uha,Vha,Wha,Tha,$o,ap,bp,cp,Xha,Rha,Yha,dp,Zha,$ha,aia,bia,cia,fia,gia,hia,fp,iia,lia,nia,jp,pia,oia,ip,lp,qia,ria,sia,rp,tia,uia,sp,via,Bp,yp,zp,Ap,wia,Ep,Dp,xia,Gp,yia,Aia,Cia,Ip,Dia,Eia,Jia,Fia,Np,Oia,Op,Pp,Qia,Sp,Ria,Sia,Tp,Uia,Vp,Wp,Xp,Via,Zp,$p,aq,bq,dq,eq,Xia,fq,gq,Yia,Zia,hq,$ia,aja,jq,hja,mq,gja,ija,oq,pq,qq,rq,lja,tq,uq,vq,pja,wq,qja,rja,xq,yq, sja,uja,vja,zq,wja,Aq,xja,yja,zja,Bq,Bja,Cq,Dq,Eq,Cja,Fq,Hq,Iq,Kq,Jq,Fja,Gja,Lq,Mq,Hja,Nq,Oq,Jja,Kja,Pq,Qq,Rq,Sq,Uq,Vq,Wq,Xq,Zq,Lja,$q,Mja,cr,dr,er,fr,gr,hr,jr,kr,Qja,lr,mr,nr,Nja,or,Tja,Wja,pr,Yja,jma,yr,kma,tma,uma,yma,wma,xma,zr,Cr,Br,zma,Er,Fr,Gr,Bma,Lr,Cma,Or,Mr,Rr,Dma,Ema,Tr,Fma,Vr,Wr,Gma,Xr,Yr,Zr,as,cs,ds,Sr,es,gs,fs,Lma,Jma,Kma,Mma,Nma,Oma,is,Qma,ms,ns,Rma,Sma,Uma,Wma,Xma,cna,Yma,Zma,$ma,ana,bna,fna,qs,ts,gna,As,Bs,Fs,Gs,Is,Js,Ls,lna,mna,Ns,nna,ona,Ps,pna,qna,Rs,rna,Ss,sna,Vs,tna,vna,wna, Ts,xna,yna,Bna,Ana,Ys,una,Dna,Ena,at,Fna,Gna,ct,Hna,dt,Ina,Jna,gt,Kna,Lna,Mna,Nna,lt,Ona,Pna,Qna,Rna,Sna,Tna,Una,Vna,nt,Wna,Yna,pt,$na,Zna,Xna,ot,aoa,qt,rt,ut,coa,zt,xt,tt,At,doa,eoa,Dt,Et,goa,hoa,Ft,Gt,ioa,joa,foa,loa,moa,noa,ooa,poa,Jt,Kt,Mt,roa,soa,Nt,voa,uoa,toa,woa,yoa,Pt,Qt,Boa,Aoa,zoa,Coa,Doa,Xt,Yt,Eoa,Vt,Foa,St,Wt,Ut,Tt,Goa,Hoa,fu,gu,Joa,Koa,Noa,lu,mu,nu,Ooa,ru,tu,Qoa,vu,uu,xu,Soa,Roa,Toa,Voa,Woa,Uoa,Yoa,Zoa,Fu,Lu,Xoa,Mu,Nu,cpa,dpa,bpa,gpa,hpa,apa,fpa,epa,Tu,Uu,lpa,npa,ppa,qpa,opa,Vu,Yu,Zu, spa,Xu,$u,av,ev,hv,iv,fv,upa,jv,kv,vpa,mv,ov,pv,rv,ypa,zpa,Apa,Bpa,Cpa,Dpa,tv,Fpa,Cv,Dv,Gpa,Hpa,Ipa,Gv,Kpa,Lpa,Mpa,Iv,Npa,Ppa,Jv,Qpa,Kv,Lv,ws,Xpa,$pa,Ov,dqa,eqa,fqa,gqa,Pv,hqa,Xv,iqa,lqa,oqa,mqa,gw,fw,pqa,ew,hw,iw,sqa,uqa,mw,nw,wqa,T,ow,pw,qw,rw,tw,uw,xqa,vw,ww,xw,Bqa,Dqa,Fqa,yw,Jqa,Lqa,Nqa,Oqa,Aw,Qqa,Rqa,Gw,Hw,Sqa,Tqa,Iw,Lw,Uqa,Vqa,Wqa,Xqa,Pw,Ow,Qw,Rw,Sw,Mw,Tw,Uw,Zqa,Vw,Yqa,bra,cra,dra,Ww,Xw,Yw,era,Zw,kra,$w,ax,cx,dx,hx,gx,tx,fx,nra,ora,ux,vx,wx,ex,sra,qra,tra,rra,pra,zx,Ax,Cx,Fx,Hx,ura,Ix,yra,Kx, xra,Ox,Lx,Ara,Era,Qx,wra,vra,Rx,Fra,Gra,Hra,Ux,Wx,Xx,Jra,Yx,Zx,Vx,Ira,Kra,$x,Mra,ay,by,Nra,cy,Ora,dy,ey,fy,gy,Pra,Qra,hy,Rra,iy,Sra,jy,ky,my,qy,ry,sy,ty,uy,vy,wy,yy,Tra,zy,By,Vra,Wra,Ay,Yra,Zra,Cy,$ra,Fy,asa,Gy,Iy,bsa,Hy,Jy,csa,Ly,fsa,Ny,Oy,Ty,hsa,Qy,Uy,Wy,isa,Yy,Sy,Vy,jsa,Zy,ksa,$y,lsa,Py,Ry,gsa,Xy,az,msa,nsa,cz,osa,psa,qsa,dz,rsa,fz,ssa,ez,tsa,gz,hz,iz,jz,kz,usa,mz,vsa,oz,wsa,pz,qz,rz,xsa,sz,ysa,lz,tz,zsa,Asa,Bsa,uz,vz,wz,xz,Csa,Dsa,Esa,zz,Fsa,Az,Bz,Gsa,Hsa,Cz,Isa,Jsa,Nsa,Osa,Ksa,Lsa,Msa,Dz,Fz, Ez,Gz,Hz,Psa,Qsa,Iz,Jz,Kz,Lz,Rsa,Ssa,Tsa,Usa,Wsa,Vsa,Nz,Xsa,Ysa,Zsa,$sa,Oz,Pz,Qz,ata,Sz,Rz,Wz,Xz,Yz,Zz,$z,bta,aA,Uz,cta,dta,dA,eA,eta,fA,hA,iA,jA,kA,lA,mA,nA,fta,oA,pA,gta,qA,rA,sA,tA,uA,vA,ita,jta,wA,xA,yA,kta,lta,zA,AA,Cra,Px,pta,qta,rta,sta,tta,uta,Jx,vta,BA,CA,xta,yta,DA,Cta,zta,Ata,Eta,Fta,FA,Dta,Gta,GA,HA,IA,Hta,Ita,Jta,JA,EA,Kta,wta,Mta,Nta,LA,Ota,Pta,Qta,NA,MA,Rta,Sta,Tta,Uta,Wta,Dra,Bra,OA,QA,SA,TA,UA,VA,RA,YA,Yta,$A,$ta,aB,bua,aua,Zta,cua,dua,eua,bB,zra,cB,fua,Mx,gua,hua,iua,jua,lua,uB, oua,mua,vB,wB,CB,qua,rua,EB,HB,tua,vua,uua,KB,wua,xua,yua,LB,MB,NB,OB,zua,PB,Aua,QB,RB,Bua,SB,Cua,UB,Dua,VB,WB,XB,YB,Eua,Fua,Hua,ZB,Iua,Gua,$B,aC,bC,cC,dC,eC,DC,yC,EC,HC,IC,pC,zC,Uua,fC,Qua,AC,CC,LC,PC,Vua,QC,Wua,mC,TC,lC,UC,WC,xC,XC,ZC,$C,aD,bD,Yua,Zua,cD,$ua,ava,bva,cva,dD,dva,iva,hva,eva,gva,fva,eD,jva,fD,kva,gD,iD,jD,nva,pva,mD,qva,rva,uD,Bva,wva,vva,xva,Dva,Eva,Iva,Kva,zD,AD,Lva,Nva,Ova,Pva,Qva,Wva,CD,Xva,Zva,Yva,$va,ED,GD,ID,awa,DD,JD,KD,bwa,fwa,cwa,ewa,UD,VD,YD,twa,nwa,RD,aE,swa,TD,uwa,vwa, bE,lwa,xwa,wwa,OD,SD,XD,Dwa,zwa,Awa,Bwa,Cwa,Ewa,cE,Fwa,Gwa,eE,fE,hE,ND,$D,pwa,dwa,owa,rwa,qwa,jE,ywa,qE,rE,sE,tE,Kwa,WD,Lwa,vE,mwa,Mwa,Hwa,ZD,Nwa,iwa,QD,hwa,Mva,zE,AE,Pwa,BE,CE,DE,FE,EE,GE,Qwa,Rwa,HE,JE,Swa,Twa,KE,LE,ME,Uwa,NE,Vwa,OE,PE,QE,RE,SE,TE,Wwa,UE,Xwa,VE,XE,$wa,WE,axa,Ywa,Zwa,bxa,cxa,dxa,YE,ZE,$E,aF,bF,gxa,gF,eF,jxa,ixa,kxa,jF,hxa,kF,fF,lF,iF,hF,dF,cF,nF,oF,qF,sF,tF,uF,mxa,vF,wF,xF,yF,zF,AF,nxa,BF,CF,DF,oxa,EF,qxa,pxa,IF,rxa,sxa,txa,wxa,uxa,vxa,xxa,JF,yxa,zxa,Axa,Bxa,Cxa,KF,LF,MF,NF,OF,PF, QF,RF,SF,TF,UF,VF,WF,XF,YF,ZF,$F,aG,bG,cG,dG,eG,fG,gG,hG,iG,jG,kG,lG,mG,nG,oG,pG,qG,rG,sG,tG,uG,vG,wG,xG,yG,zG,AG,BG,CG,DG,EG,FG,GG,HG,IG,JG,KG,Exa,Fxa,Dxa,Hxa,Ixa,Gxa,LG,Jxa,MG,NG,OG,PG,QG,Lxa,Kxa,RG,SG,TG,Mxa,ZG,$G,Nxa,Pxa,aH,Qxa,bH,cH,Rxa,dH,Sxa,Txa,Uxa,Vxa,Wxa,eH,fH,Yxa,Xxa,Zxa,gH,hH,bya,cya,iH,dya,eya,jH,lH,mH,nH,oH,rH,tH,uH,fya,gya,vH,hya,iya,wH,jya,yH,kya,lya,zH,AH,mya,nya,BH,pya,oya,CH,rya,DH,sya,FH,GH,IH,tya,uya,vya,wya,xya,JH,LH,Bya,Eya,yya,MH,Nya,NH,Pya,Oya,Rya,Sya,Uya,Tya,Vya,Wya,Xya, Yya,OH,PH,Zya,$ya,aza,cza,dza,eza,fza,gza,WH,iza,jza,UH,VH,hza,kza,lza,XH,oza,mza,qza,pza,rza,YH,lxa,sza,fxa,tza,uza,vza,ZH,Bza,xza,yza,zza,Cza,$H,Fza,Dza,Gza,Hza,Eza,Aza,Iza,xH,Kza,Lza,Jza,aI,bI,Mza,Nza,Oza,cI,eI,Qza,fI,iI,jI,Rza,Sza,Tza,kI,Vza,Wza,Xza,Yza,Zza,$za,aAa,pI,bAa,qI,cAa,dAa,eAa,sI,fAa,gAa,hAa,vI,wI,xI,iAa,yI,jAa,AI,lAa,kAa,BI,CI,DI,EI,mAa,FI,GI,nAa,HI,II,rAa,oAa,qAa,pAa,sAa,KI,LI,tAa,uAa,vAa,MI,wAa,yAa,xAa,NI,OI,PI,QI,RI,TI,UI,VI,WI,XI,YI,ZI,AAa,zAa,$I,BAa,aJ,bJ,cJ,dJ,eJ,hJ,iJ,jJ,kJ, lJ,mJ,nJ,oJ,DAa,FAa,EAa,pJ,IAa,JAa,tJ,uJ,LAa,wJ,MAa,NAa,OAa,xJ,QAa,zJ,RAa,AJ,BJ,CJ,DJ,TAa,FJ,WAa,VAa,UAa,YAa,GJ,HJ,IJ,JJ,KJ,LJ,MJ,QJ,$Aa,bBa,cBa,SJ,dBa,vs,fBa,eBa,gBa,iBa,hBa,kBa,jBa,fK,lBa,mBa,oBa,pBa,tBa,sBa,ABa,CBa,DBa,nK,pK,qK,rK,sK,FBa,tK,uK,GBa,vK,HBa,wK,xK,yK,zK,AK,BK,IBa,JBa,CK,KBa,FK,NBa,OBa,GK,PBa,JK,HK,KK,IK,wza,QBa,RBa,SBa,TBa,PK,OK,WBa,ZBa,$K,aL,bL,$Ba,aCa,cL,dL,bCa,cCa,fL,gL,fCa,dCa,gCa,hCa,iCa,jCa,lCa,qL,pCa,tL,rCa,uL,oCa,sCa,tCa,sL,qCa,vL,wL,xL,TK,MK,zL,BL,wCa,uCa,vCa,CL,FL,yCa,EL, zCa,ACa,KL,LL,ML,QL,CCa,DCa,RL,SL,ECa,FCa,GCa,HCa,TL,JCa,ICa,KCa,UL,LCa,MCa,WL,XL,NCa,$L,PCa,bM,YL,QCa,RCa,OCa,cM,dM,gM,SCa,TCa,fM,iM,hM,kM,mM,UCa,pM,VCa,YCa,WCa,ZCa,sM,tM,$Ca,aDa,wM,xM,yM,zM,AM,CM,cDa,bDa,dDa,EM,fDa,eDa,gDa,hDa,iDa,jDa,KM,LM,kDa,MM,NM,lDa,mDa,nDa,oDa,OM,RM,qDa,pDa,SM,TM,UM,rDa,VM,WM,XM,YM,sDa,ZM,$M,tDa,aN,uDa,wDa,vDa,fN,dN,eN,xDa,yDa,zDa,gN,hN,iN,jN,kN,ADa,BDa,CDa,nN,oN,pN,rN,sN,tN,vN,wN,xN,yN,zN,DDa,GDa,AN,EDa,FDa,KDa,LDa,CN,NDa,MDa,ODa,PDa,QDa,EN,GN,SDa,HN,RDa,IN,TDa,VDa,UDa,JN, KN,LN,MN,WDa,NN,XDa,QN,YDa,TN,$Da,RN,ZDa,bEa,VN,cEa,$N,eEa,fEa,XN,UN,bO,WN,cO,iEa,dO,ZN,aEa,hEa,aO,dEa,gEa,jEa,ON,fO,kEa,lEa,YN,gO,hO,iO,jO,kO,lO,mO,nO,oO,pO,qO,nEa,tO,uO,vO,wO,xO,yO,zO,AO,oEa,BO,CO,DO,EO,GO,FO,HO,IO,pEa,JO,qEa,sEa,rEa,KO,LO,tEa,MO,NO,uEa,OO,vEa,PO,wEa,QO,SO,VO,UO,YO,XO,xEa,WO,$O,zEa,AEa,aP,bP,cP,dP,fP,BEa,nM,yEa,FEa,IM,CEa,hP,EEa,JM,DEa,GEa,IEa,HEa,JEa,KEa,kP,LEa,lP,MEa,nP,NEa,oP,OEa,pP,qP,PEa,sP,REa,QEa,rP,tP,uP,SEa,TEa,UEa,VEa,WEa,XEa,xP,yP,bFa,eFa,cFa,ZEa,AP,YEa,dFa,DP,gFa,fFa, EP,iFa,kFa,lFa,jFa,JP,mFa,qFa,QP,rFa,RP,TP,UP,VP,sFa,KP,WP,YP,uFa,tFa,OP,ZP,$P,vFa,aQ,xFa,yFa,zFa,AFa,BFa,LP,oFa,PP,MP,bQ,GFa,dQ,HFa,IFa,EFa,fQ,JFa,gQ,CFa,iQ,FFa,KFa,hQ,eQ,LFa,jQ,MFa,cQ,OFa,mQ,PFa,kQ,nQ,lQ,pQ,QFa,qQ,rQ,RFa,sQ,tQ,uQ,vQ,SFa,wQ,TFa,yQ,WFa,XFa,YFa,BQ,AQ,zQ,ZFa,$Fa,aGa,bGa,EQ,FQ,GQ,cGa,dGa,eGa,HQ,fGa,JQ,gGa,IQ,KQ,LQ,hGa,jGa,nGa,kGa,lGa,mGa,oGa,QQ,RQ,pGa,rGa,sGa,SQ,tGa,TQ,uGa,zGa,AGa,BGa,YQ,ZQ,CGa,yGa,DGa,UQ,vGa,EGa,VQ,WQ,wGa,xGa,XQ,FGa,GGa,HGa,uva,Ava,aR,bR,KGa,IGa,JGa,cR,LGa,dR,eR,MGa, NGa,OGa,fR,PGa,QGa,hR,RGa,iR,jR,SGa,lR,UGa,mR,YGa,pR,OQ,TGa,$Ga,rR,WGa,XGa,VGa,qR,oR,nR,ZGa,dHa,bHa,aHa,tR,eHa,uR,fHa,vR,wR,gHa,hHa,iHa,jHa,kHa,yR,zR,AR,BR,CR,DR,nHa,oHa,NQ,PQ,rHa,GR,HR,qGa,KR,FR,sHa,ER,pHa,qHa,LR,tHa,uHa,JR,MQ,IR,vHa,wHa,xHa,MR,zHa,yHa,NR,DHa,OR,FHa,EHa,QR,PR,HHa,SR,RR,IHa,BHa,UR,GHa,CHa,TR,VR,JHa,WR,$R,KHa,YR,NHa,ZR,OHa,aS,MHa,LHa,PHa,bS,QHa,RHa,UHa,THa,SHa,cS,VHa,ZHa,$Ha,hS,iS,jS,bIa,cIa,kS,lS,mS,eIa,pS,fIa,fS,gIa,aIa,hIa,iIa,kIa,cHa,tS,uS,jIa,kR,nS,dIa,lIa,mIa,nIa,oIa,pIa,WHa, eS,gS,qIa,wS,xS,rIa,sIa,tIa,uIa,yS,vIa,xIa,wIa,zIa,AS,DIa,AIa,CIa,EIa,BS,IIa,GIa,HIa,KIa,LIa,MIa,CS,zS,NIa,FIa,PIa,DS,QIa,BIa,RIa,ES,TIa,UIa,GS,SIa,HS,IS,VIa,JS,KS,LS,XIa,$Ia,ZIa,YIa,NS,aJa,MS,bJa,PS,RS,cJa,fJa,dJa,eJa,gJa,hJa,jJa,iJa,kJa,lJa,SS,nJa,oJa,pJa,mJa,qJa,sJa,uJa,vJa,rJa,wJa,xJa,zJa,yJa,AJa,tJa,TS,US,BJa,VS,WS,XS,$S,aT,GJa,bT,HJa,JJa,IJa,eT,cT,EJa,LJa,KJa,MJa,gT,NJa,PJa,OJa,QJa,hT,iT,RJa,jT,UJa,kT,lT,WJa,nT,mT,XJa,pT,VJa,qT,YJa,oT,ZJa,rT,$Ja,FJa,fT,bKa,cKa,dKa,eKa,fKa,gKa,hKa,jKa,kKa,lKa, iKa,mKa,nKa,tT,oKa,pKa,uT,vT,qKa,rKa,sKa,xT,uKa,zT,vKa,wKa,yT,wT,tKa,CT,BT,xKa,DT,AT,yKa,FT,CKa,IT,DKa,AKa,GT,EKa,JT,BKa,FKa,KT,HKa,ET,IKa,JKa,GKa,KKa,HT,LKa,MKa,zKa,LT,MT,NKa,NT,xR,XHa,mHa,PT,OKa,YHa,lHa,PKa,QT,OT,QKa,SKa,TKa,RKa,VKa,UKa,YKa,WKa,XKa,$Ka,ZKa,aLa,bLa,cLa,RT,TT,eLa,iLa,hLa,aU,cU,bU,lLa,nLa,qLa,vLa,sLa,uLa,zLa,eU,ALa,BLa,CLa,gU,DLa,ELa,hU,ST,FLa,dLa,fU,HLa,ILa,OLa,LLa,PLa,MLa,JLa,QLa,RLa,KLa,TLa,iU,ULa,WLa,XLa,YLa,mF,oU,ZLa,bMa,nFa,cMa,pU,QS,dMa,xU,rU,HP,nU,yU,AU,rS,sS,BU,GLa,aMa,vU, wU,qS,iMa,hMa,uU,sU,CU,kMa,BP,lMa,OS,hFa,EU,XP,$La,qU,mMa,nMa,FU,aFa,oMa,qMa,gMa,jU,rMa,GU,tU,kU,sMa,HU,CP,tMa,IU,SP,uMa,vMa,wMa,$Ea,DU,jMa,EMa,AMa,zMa,HMa,IMa,OU,IP,KMa,JMa,SU,TU,UU,MMa,JU,LU,DMa,$U,NMa,ZU,yMa,OMa,PMa,fMa,NU,QMa,RMa,GMa,dV,SMa,KU,WU,XU,VU,gV,UMa,RU,bV,hV,iV,VMa,YU,LMa,fV,TMa,jV,WMa,XMa,YMa,LK,ZMa,aV,kV,aNa,PU,lV,mV,QU,bNa,cNa,CMa,eV,cV,dNa,BMa,nV,oV,VFa,eNa,fNa,pV,lw,X,qV,hNa,sV,jNa,rV,kNa,vV,tV,wV,uV,lNa,mNa,xV,yV,zV,nNa,AV,BV,CV,DV,EV,FV,pNa,oNa,qNa,GV,HV,UG,VG,rNa,WG,GF,JV,tNa, SV,TV,YG,UV,FF,QV,VV,xNa,yNa,zNa,ANa,sNa,BNa,IV,CNa,DNa,YV,NV,XV,cW,ZV,LV,ENa,KV,uNa,WV,$V,eW,OV,PV,bW,aW,GNa,fW,gW,HNa,hW,Y,iW,JI,jW,INa,LNa,MNa,QNa,kW,RNa,NNa,SNa,lW,mW,nW,UNa,XNa,VNa,$Na,hOa,gOa,aOa,iOa,cOa,dOa,bOa,lOa,nOa,pOa,sOa,tOa,vOa,wOa,zOa,BOa,xOa,AW,COa,FOa,HOa,EOa,JOa,KOa,LOa,CW,tqa,NOa,MOa,FW,jw,HW,IW,qqa,JW,POa,QOa,BW,yW,pW,sW,KW,LW,uW,tW,ROa,ZNa,qW,rW,xW,SOa,TOa,MW,UOa,NW,VOa,EW,wW,vW,oW,qOa,uOa,zW,DOa,jOa,eOa,OW,PW,QW,WOa,RW,SW,TW,UW,VW,WW,XW,JNa,YW,KNa,YOa,XOa,TNa,rOa,ZOa,IOa,$Oa, aPa,oOa,YNa,WNa,PNa,kOa,ONa,fOa,yOa,AOa,cPa,GOa,mOa,dPa,ZW,bPa,$W,XG,MV,vNa,GW,ePa,fPa,aX,bX,cX,dX,gPa,eX,fX,DW,gX,dW,RV,hPa,hX,iPa,jPa,iX,kX,lX,mX,nX,lPa,pX,qX,rX,kPa,oX,mPa,nPa,oPa,sX,kw,sPa,rPa,tX,uX,jX,tPa,uPa,vPa,vX,wX,wPa,xX,yX,xPa,yPa,zPa,APa,zX,BPa,AX,VX,eY,gY,hY,iY,CPa,jY,kY,lY,mY,nY,oY,pY,qY,DPa,EPa,FPa,rY,sY,tY,uY,GPa,vY,HPa,wY,IPa,xY,JPa,yY,zY,AY,BY,CY,DY,KPa,FY,GY,LPa,MPa,NPa,IY,HY,KY,LY,JY,NY,OPa,PPa,qPa,MY,OY,QPa,PY,SPa,RPa,QY,RY,OOa,TPa,SY,UPa,TY,WPa,XPa,VPa,YPa,UY,ZPa,$Pa,aQa,VY, WY,XY,bQa,YY,ZY,$Y,cQa,aZ,bZ,dQa,cZ,EY,dZ,eZ,fZ,Oxa,gZ,eQa,hZ,fQa,iZ,jZ,gQa,kZ,lZ,mZ,hQa,nZ,iQa,oZ,pZ,kQa,jQa,lQa,mQa,nQa,qZ,rZ,sZ,oQa,pQa,qQa,rQa,sQa,tQa,uQa,vQa,wQa,xQa,tZ,uZ,yQa,zQa,vZ,wZ,xZ,yZ,AQa,zZ,BQa,AZ,CQa,DQa,BZ,EQa,FQa,CZ,GQa,HQa,DZ,EZ,IQa,JQa,KQa,FZ,GZ,IZ,LQa,JZ,KZ,LZ,MQa,MZ,NQa,NZ,OZ,OQa,PZ,PQa,QQa,RQa,SQa,TQa,UQa,RZ,VQa,WQa,XQa,YQa,ZQa,SZ,TZ,$Qa,UZ,VZ,WZ,XZ,aRa,YZ,bRa,cRa,dRa,a_,eRa,fRa,gRa,b_,$Z,hRa,d_,iRa,e_,jRa,f_,g_,h_,i_,j_,kRa,mRa,lRa,nRa,k_,oRa,pRa,l_,qRa,m_,n_,o_,rRa,sRa,p_, tRa,q_,uRa,r_,vRa,wRa,s_,rqa,xRa,yRa,ba,ha,fa,vj,Qa,faa;ca=function(a){return function(){return ba[a].apply(this,arguments)}}; g.da=function(a,b){return ba[a]=b}; ea=function(a){var b=0;return function(){return b "+a)}; ab=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ab);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.PT=b)}; bb=function(a,b){var c=ab.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;ff)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e=k){f=1024*(f-55296)+k-56320+65536;d[c++]=f>> 18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=d.subarray(0,c)}return a}; g.gb=function(a){for(var b=[],c=0,d=0;de?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; ib=function(a,b){return 0==a.lastIndexOf(b,0)}; jb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; g.kb=function(a){return/^[\s\xa0]*$/.test(a)}; tb=function(a,b){if(b)a=a.replace(lb,"&").replace(nb,"<").replace(pb,">").replace(qb,""").replace(rb,"'").replace(sb,"�");else{if(!kaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(lb,"&"));-1!=a.indexOf("<")&&(a=a.replace(nb,"<"));-1!=a.indexOf(">")&&(a=a.replace(pb,">"));-1!=a.indexOf('"')&&(a=a.replace(qb,"""));-1!=a.indexOf("'")&&(a=a.replace(rb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(sb,"�"))}return a}; g.ub=function(a,b){return-1!=a.indexOf(b)}; wb=function(a,b){return g.ub(a.toLowerCase(),b.toLowerCase())}; g.zb=function(a,b){var c=0;a=xb(String(a)).split(".");b=xb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.Ab=function(){var a=g.C.navigator;return a&&(a=a.userAgent)?a:""}; Cb=function(a){var b=Bb;return b?b.brands.some(function(c){return(c=c.brand)&&g.ub(c,a)}):!1}; Db=function(a){return g.ub(g.Ab(),a)}; Eb=function(){var a=Bb;return!!a&&0b?null:"string"===typeof a?a.charAt(b):a[b]}; Yb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; paa=function(a){for(var b=0,c=0,d={};c>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0b?1:ac&&g.lc(a,-(c+1),0,b)}; g.uc=function(a,b,c){var d={};(0,g.tc)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; saa=function(a){for(var b=[],c=0;c=a}; g.Hc=function(a,b){void 0===b&&(b=0);Fc();b=Gc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+k+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; g.Ic=function(a){for(var b=[],c=0,d=0;d>=8);b[c++]=e}return g.Hc(b,3)}; Lc=function(a){var b=[];Jc(a,function(c){b.push(c)}); return b}; Nc=function(a){!g.Mc||g.Cc("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ub("=.",a[b-1])&&(c=g.ub("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Jc(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; Jc=function(a,b){function c(m){for(;d>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}}; Fc=function(){if(!Oc){Oc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Gc[c]=d;for(var e=0;ee&&128<=b;e++)b=a.u[a.j++],hd(a),c|=(b&127)<<7*e;128<=b&&(b=a.u[a.j++],hd(a),c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.j++],hd(a),d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}throw Za();}; hd=function(a){if(a.j>a.B)throw $a(a.B,a.j);}; g.kd=function(a){var b=a.u,c=b[a.j+0],d=c&127;if(128>c)return a.j+=1,hd(a),d;c=b[a.j+1];d|=(c&127)<<7;if(128>c)return a.j+=2,hd(a),d;c=b[a.j+2];d|=(c&127)<<14;if(128>c)return a.j+=3,hd(a),d;c=b[a.j+3];d|=(c&127)<<21;if(128>c)return a.j+=4,hd(a),d;c=b[a.j+4];a.j+=5;d|=(c&15)<<28;if(128>c)return hd(a),d;if(128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++]&&128<=b[a.j++])throw Za();hd(a);return d}; g.ld=function(a){var b=a.u[a.j+0],c=a.u[a.j+1],d=a.u[a.j+2],e=a.u[a.j+3];a.j+=4;hd(a);return(b<<0|c<<8|d<<16|e<<24)>>>0}; g.md=function(a){for(var b=0,c=a.j,d=c+10;cb)throw Error("Tried to read a negative byte length: "+b);if(a.j+b>a.B)throw $a(b,a.B-a.j);}; od=function(a,b){nd(a,b);if(0==b)return $c();if(a.Dz&&a.D)var c=a.u.subarray(a.j,a.j+b);else{c=a.u;var d=a.j,e=a.j+b;c=d===e?Uc():waa?c.slice(d,e):new Uint8Array(c.subarray(d,e))}a.j+=b;return 0==c.length?$c():new Yc(c,Vc)}; rd=function(a){if(pd.length){var b=pd.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new g.gd(a);this.j=a;this.B=this.j.j;this.u=this.C=-1;qd(this)}; qd=function(a){var b={};a.LE=void 0===b.LE?!1:b.LE}; td=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=g.kd(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Ya(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0}; ud=function(a){switch(a.u){case 0:0!=a.u?ud(a):g.md(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)ud(a);else{var b=g.kd(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!td(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}ud(a)}while(1);break;default:throw Ya(a.u,a.B);}}; g.vd=function(a,b,c){var d=a.j.B,e=g.kd(a.j)>>>0,f=a.j.j+e,k=f-d;0>=k&&(a.j.B=f,c(b,a),k=f-a.j.j);if(k)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-k)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d}; g.wd=function(a){var b=a.j;a=g.ld(b);var c=g.ld(b);b=2*(c>>31)+1;var d=c>>>20&2047;a=4294967296*(c&1048575)+a;return 2047==d?a?NaN:Infinity*b:0==d?b*Math.pow(2,-1074)*a:b*Math.pow(2,d-1075)*(a+4503599627370496)}; g.yd=function(a){var b=g.kd(a.j)>>>0;a=a.j;nd(a,b);var c=a.j;a.j+=b;a=a.u;var d;if(xaa)(d=xd)||(d=xd=new TextDecoder("utf-8",{fatal:!0})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,k,l,m;ck?e.push(k):224>k?c>=b?cb():(l=a[c++],194>k||128!==(l&192)?(c--,cb()):e.push((k&31)<<6|l&63)):240>k?c>=b-1?cb():(l=a[c++],128!==(l&192)||224===k&&160>l||237===k&&160<=l||128!==((d=a[c++])&192)?(c--,cb()):e.push((k&15)<<12|(l&63)<<6|d&63)):244>=k?c>=b-2?cb():(l=a[c++],128!==(l&192)|| 0!==(k<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,cb()):(k=(k&7)<<18|(l&63)<<12|(d&63)<<6|m&63,k-=65536,e.push((k>>10&1023)+55296,(k&1023)+56320))):cb(),8192<=e.length&&(f=db(f,e),e.length=0);d=db(f,e)}return d}; zd=function(a){var b=g.kd(a.j)>>>0;return od(a.j,b)}; Ad=function(a,b){this.u=a>>>0;this.j=b>>>0}; Cd=function(a){if(!a)return Bd||(Bd=new Ad(0,0));if(!/^-?\d+$/.test(a))return null;g.fd(a);return new Ad(g.ed,g.dd)}; Dd=function(){this.j=[]}; Ed=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Fd=function(a,b){for(;127>>=7;a.j.push(b)}; Gd=function(a,b){if(0<=b)Fd(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; g.Jd=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; yaa=function(){this.B=[];this.u=0;this.j=new Dd}; Kd=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)}; Md=function(a,b){g.Ld(a,b,2);b=a.j.end();Kd(a,b);b.push(a.u);return b}; Nd=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127>>=7,a.u++;b.push(c);a.u++}; zaa=function(a,b){if(b=b.D){Kd(a,a.j.end());for(var c=0;c=a.C?a.u?a.u[b]:void 0:(void 0===c?0:c)&&a.u&&(c=a.u[b],null!=c)?c:a.Ae[b+a.B]}; g.D=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||Zd(a);bd?-2147483648:0)?-d:d,1.7976931348623157E308>>0,g.ed=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),g.dd=(c|b/4294967296)>>>0,g.ed=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022>>0;g.ed=4503599627370496* d>>>0}g.Jd(a,g.ed);g.Jd(a,g.dd)}}; g.df=function(a,b,c){b=g.fe(b,c);if(null!=b&&("string"===typeof b&&Cd(b),null!=b))if(g.Ld(a,c,0),"number"===typeof b){a=a.j;var d=b;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295a.u&&(a.u++,b.next=a.j,a.j=b)}; Jg=function(a){return function(){return a}}; g.Kg=function(){}; Yaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; Lg=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; Mg=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; Zaa=function(a,b){var c=0;return function(d){g.C.clearTimeout(c);var e=arguments;c=g.C.setTimeout(function(){a.apply(b,e)},50)}}; Og=function(){if(void 0===Ng){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Xa,createScript:Xa,createScriptURL:Xa})}catch(c){g.C.console&&g.C.console.error(c.message)}Ng=a}else Ng=a}return Ng}; Rg=function(a,b){this.j=a===Pg&&b||"";this.u=Qg}; Sg=function(a){return a instanceof Rg&&a.constructor===Rg&&a.u===Qg?a.j:"type_error:Const"}; g.Tg=function(a){return new Rg(Pg,a)}; Vg=function(a,b){this.j=b===Ug?a:"";this.xl=!0}; Xg=function(a,b){this.j=b===Wg?a:""}; Yg=function(a){return a instanceof Xg&&a.constructor===Xg?a.j:"type_error:TrustedResourceUrl"}; bba=function(a,b){var c=Sg(a);if(!$aa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(aba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof Rg?Sg(d):encodeURIComponent(String(d))}); return Zg(a)}; Zg=function(a){var b=Og();a=b?b.createScriptURL(a):a;return new Xg(a,Wg)}; g.ah=function(a,b){this.j=b===$g?a:""}; g.bh=function(a){return a instanceof g.ah&&a.constructor===g.ah?a.j:"type_error:SafeUrl"}; ch=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(cba)?new g.ah(a,$g):null}; g.eh=function(a){a instanceof g.ah||(a="object"==typeof a&&a.xl?a.Nh():String(a),a=dh.test(a)?new g.ah(a,$g):ch(a));return a||dba}; g.fh=function(a,b){if(a instanceof g.ah)return a;a="object"==typeof a&&a.xl?a.Nh():String(a);if(b&&/^data:/i.test(a)&&(b=ch(a)||dba,b.Nh()==a))return b;dh.test(a)||(a="about:invalid#zClosurez");return new g.ah(a,$g)}; hh=function(a,b){this.j=b===gh?a:"";this.xl=!0}; ih=function(a){return a instanceof hh&&a.constructor===hh?a.j:"type_error:SafeStyle"}; fba=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(eba).join(" "):eba(d),b+=c+":"+d+";")}return b?new hh(b,gh):nh}; gba=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=ih(d)} var c="";Array.prototype.forEach.call(arguments,b);return c?new hh(c,gh):nh}; eba=function(a){if(a instanceof g.ah)return'url("'+g.bh(a).replace(/a*b?a+b:a}; g.zh=function(a,b,c){return a+c*(b-a)}; Ah=function(a,b){return 1E-6>=Math.abs(a-b)}; g.Bh=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Ch=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Dh=function(a,b){this.width=a;this.height=b}; g.Eh=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; Fh=function(a){return a.width*a.height}; g.Gh=function(a){return encodeURIComponent(String(a))}; Hh=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; g.Ih=function(a){return a=tb(a,void 0)}; g.Jh=function(a){return null==a?"":String(a)}; Kh=function(a){for(var b=0,c=0;c>>0;return b}; Lh=function(a){var b=Number(a);return 0==b&&g.kb(a)?NaN:b}; xba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; yba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; zba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; Aba=function(a){var b=1;a=a.split(":");for(var c=[];0a}; hi=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return gi(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.bc(f.className.split(/\s+/),c))},!0,d)}; gi=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null}; Mh=function(a){this.j=a||g.C.document||document}; ji=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Hb()&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(ii||(ii=Lba()),ii(a)):g.C.setImmediate(a)}; Lba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Db("Presto")&&(a=function(){var e=g.Yh("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var k="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Sa)(function(m){if(("*"==l||m.origin==l)&&m.data==k)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(k,l)}}}); if("undefined"!==typeof a&&!Gb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.tL;c.tL=null;e()}}; return function(e){d.next={tL:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}}; Mba=function(a){g.C.setTimeout(function(){throw a;},0)}; ki=function(){this.u=this.j=null}; li=function(){this.next=this.scope=this.j=null}; g.oi=function(a,b){mi||Nba();ni||(mi(),ni=!0);Oba.add(a,b)}; Nba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);mi=function(){a.then(Pba)}}else mi=function(){ji(Pba)}}; Pba=function(){for(var a;a=Oba.remove();){try{a.j.call(a.scope)}catch(b){Mba(b)}Ig(Qba,a)}ni=!1}; pi=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; g.ri=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.La)try{var b=this;a.call(void 0,function(c){qi(b,2,c)},function(c){qi(b,3,c)})}catch(c){qi(this,3,c)}}; Rba=function(){this.next=this.context=this.onRejected=this.u=this.j=null;this.B=!1}; si=function(a,b,c){var d=Sba.get();d.u=a;d.onRejected=b;d.context=c;return d}; ti=function(a){if(a instanceof g.ri)return a;var b=new g.ri(g.La);qi(b,2,a);return b}; ui=function(a){return new g.ri(function(b,c){c(a)})}; g.Uba=function(a,b,c){Tba(a,b,c,null)||g.oi(g.Ta(b,a))}; Vba=function(a){return new g.ri(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.WP()}; fca=function(a,b){return a.J.has(b)?void 0:a.j.get(b)}; gca=function(a){for(var b=0;bw;w+=4)t[w/4]=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3];for(w=16;80>w;w++)q=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],E=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var I=z^x&(y^z);var J=1518500249}else I=x^y^z,J=1859775393;else 60>w?(I=x&y|z&(x|y),J=2400959708):(I=x^y^z,J=3395469782);I=((q<<5|q>>>27)&4294967295)+I+E+J+t[w]&4294967295;E=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=I}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+E&4294967295} function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var w=[],x=0,y=q.length;xn?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)q[t++]=e[w]>>x&255;return q} for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,mU:function(){for(var q=d(),t="",w=0;wb&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]}; Jca=function(a,b){return b?a?a+"&"+b:b:a}; Zi=function(a,b){if(!b)return a;a=Ica(a);a[1]=Jca(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; $i=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Hh(a.substr(d,e-d))}; sj=function(a,b){for(var c=a.search(Mca),d=0,e,f=[];0<=(e=Lca(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Nca,"$1")}; Oca=function(a,b,c){return qj(sj(a,b),b,c)}; Pca=function(a,b){a=Ica(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)}); a[1]=Jca(d.join("&"),g.aj(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; g.tj=function(a){g.Fg.call(this);this.headers=new Map;this.Z=a||null;this.D=!1;this.xa=this.j=null;this.Pa=this.X="";this.u=0;this.C="";this.J=this.Ha=this.ma=this.Da=!1;this.N=0;this.ra=null;this.Ra="";this.va=this.K=!1}; Rca=function(a,b,c,d,e,f,k){var l=new g.tj;Qca.push(l);b&&l.Oa("complete",b);l.cB("ready",l.UT);f&&(l.N=Math.max(0,f));k&&(l.K=k);l.send(a,c,d,e)}; Sca=function(a){return g.Mc&&g.Cc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Uca=function(a,b){a.D=!1;a.j&&(a.J=!0,a.j.abort(),a.J=!1);a.C=b;a.u=5;Tca(a);uj(a)}; Tca=function(a){a.Da||(a.Da=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Vca=function(a){if(a.D&&"undefined"!=typeof vj)if(a.xa[1]&&4==g.wj(a)&&2==a.getStatus())xj(a,"Local request error detected and ignored");else if(a.ma&&4==g.wj(a))g.zi(a.LO,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){xj(a,"Request complete");a.D=!1;try{if(yj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.qb()?"https://web.archive.org/web/20220328145930/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20220328145930/https://play.google.com/log?format=json&hasfast=true");return a.ra}; kda=function(a,b){a.D=new g.Ni(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())}; mda=function(a){lda(a,function(b,c){b=qj(b,"format","json");b=Uh().navigator.sendBeacon(b,Ge(c));a.xa&&!b&&(a.xa=!1);return b})}; lda=function(a,b){if(0!==a.u.length){var c=sj(jda(a),"format");c=bj(c,"auth",a.Va(),"authuser",a.X||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.J.ye(e,a.K);if(!b(c,f))break;a.K=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}}; nda=function(){g.Cf.call(this,"event-logged",void 0)}; hda=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new dda;g.D(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Gj(this,new Dj)}; Gj=function(a,b){xe(a.j,1,b);g.fe(b,1)||g.D(b,1,1);a.B||(b=Ij(a),g.fe(b,5)||g.D(b,5,a.locale));a.u&&(b=Ij(a),ve(b,ada,9)||xe(b,9,a.u))}; oda=function(a,b){b(Uh()).then(function(c){a.u=c;c=Ij(a);xe(c,9,a.u);return!0}).catch(function(){return!1})}; Ij=function(a){a=ve(a.j,Dj,1);var b=ve(a,Cj,11);b||(b=new Cj,xe(a,11,b));return b}; pda=function(a,b,c){Rca(a.url,function(d){d=d.target;yj(d)?b(g.zj(d)):c(d.getStatus())},a.requestType,a.body,a.wr,a.timeoutMillis,a.withCredentials)}; qda=function(){this.B="https://web.archive.org/web/20220328145930/https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=pda;this.j=""}; rda=function(){var a="",b=!1,c="2";a=void 0===a?"":a;c=void 0===c?"":c;var d=new qda;d.j="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.j=d.ye()}; sda=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Jj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c}; Kj=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; Lj=function(a,b){this.logger=a;this.j=b;this.startMillis=Kj()}; Mj=function(){}; Nj=function(a){this.gk=a;this.C=new rda;this.j=new g.Bi(this.C);this.clientError=new jca(this.j);this.u=new ica(this.j);this.B=new hca(this.j)}; tda=function(a){g.F.call(this,a)}; uda=function(a){g.F.call(this,a)}; Oj=function(a){g.F.call(this,a)}; g.Pj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})}; Qj=function(a){this.j=!1;if(a.challenge instanceof Oj){var b=je(a.challenge,4,"");a=je(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new g.Pj;this.u=c.promise;this.B=g.r((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({JT:d,WZ:e})})},!0)).next().value; this.UZ=c.promise.then(function(){})}; vda=function(a){return sba(g.Tg("From proto message. b/12014412"),g.fe(a,4)||"")}; wda=function(){}; Rj=function(a){this.j=a}; xda=function(){}; Sj=function(a){this.j=a}; yda=function(a){if(a instanceof xda)if(a instanceof Sj)a=a.j;else throw Error("");else a=g.bh(a);return a}; zda=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)}; g.Tj=function(a,b){a.src=Yg(b);zda(a)}; Ada=function(a,b){return a.parseFromString(g.qh(b),"text/xml")}; Uj=function(){this.j={};this.u=null}; Bda=function(){Uj.j||(Uj.j=new Uj);return Uj.j}; Dda=function(a){var b=Bda();return Cda(b,ve(a,tda,1),ve(a,uda,2),je(a,3,""))}; Cda=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Eda(b,c);(e=a.j)[d]||(e[d]=new Promise(function(f,k){Eda(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d]; k(l)})})); return a.j[d]}; Eda=function(a,b){return b?Fda(b):a?Gda(a):Promise.resolve()}; Fda=function(a){return new Promise(function(b,c){var d=g.Yh("SCRIPT"),e=vda(a);g.Tj(d,e);d.onload=function(){g.bi(d);b()}; d.onerror=function(){g.bi(d);c(Error("EWLS"))}; (g.Ph("HEAD")[0]||document.documentElement).appendChild(d)})}; Gda=function(a){return new Promise(function(b){var c=g.Yh("SCRIPT");if(a){var d=g.fe(a,6);if(null===d||void 0===d)var e=null;else{var f=null==(e=Og())?void 0:e.createScript(d);e=new Rj(null!=f?f:d,Vj)}}else e=null;if(e instanceof wda)if(e instanceof Rj)e=e.j;else throw Error("");else e=e instanceof Vg&&e.constructor===Vg?e.j:"type_error:SafeScript";c.textContent=e;zda(c);(g.Ph("HEAD")[0]||document.documentElement).appendChild(c);g.bi(c);b()})}; Wj=function(a){g.F.call(this,a)}; Xj=function(a){g.F.call(this,a)}; Yj=function(a){g.F.call(this,a)}; Hda=function(a,b,c){this.client=a;this.gk=b;this.j=c}; Ida=function(a){var b=Bda().u,c,d,e,f,k;return g.B(function(l){if(1==l.j)return c=new Wj,pe(c,1,a.gk,""),b&&pe(c,2,b,""),d=a.j(),g.A(l,a.client.create(c,d),2);e=l.u;f=bd(ke(e,2));if(f.length){var m=l.return;var n=new Uint8Array(f.length);for(var p=0;p=n.length)n=String.fromCharCode.apply(null,n);else{p="";for(var q=0;qb)throw Error("Bad port number "+b);a.u=b}else a.u=null}; wk=function(a,b,c){b instanceof yk?(a.B=b,Vda(a.B,a.J)):(c||(b=zk(b,Wda)),a.B=new yk(b,a.J))}; g.Ak=function(a,b,c){a.B.set(b,c)}; g.Bk=function(a){return a instanceof g.sk?a.clone():new g.sk(a,void 0)}; xk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; zk=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Xda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Xda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; yk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b}; Ck=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Yi(a.B,function(b,c){a.add(Hh(b),c)}))}; Yda=function(a,b){Ck(a);b=Dk(a,b);return a.j.has(b)}; g.Zda=function(a,b,c){a.remove(b);0>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=pea(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,k=f,l=0;12<=k;k-=12,l+=12)c+=bl(a,l),d+=bl(a,l+4),e+=bl(a,l+8),b();e+=f;switch(k){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return oea(e)}; pea=function(a){for(var b=[],c=0;c=e)){E.Ya(4);break}g.va(E,5);return g.A(E,kl(a.logger.lG("c",e,Ida(a.fA)),function(){return Promise.reject(new el(10,"JVZ:Timeout"))}),7); case 7:return f=E.u,k=new Lj(a.logger,"b"),g.A(E,Dda(f),8);case 8:return l=new Qj({challenge:f}),g.A(E,kl(l.snapshot({}),function(){return Promise.reject(new el(15,"MDA:Timeout"))}),9); case 9:return m=E.u,k.done(),g.A(E,kl(a.logger.lG("g",e,Kda(a.fA,m)),function(){return Promise.reject(new el(10,"BWB:Timeout"))}),10); case 10:n=E.u;p=new Lj(a.logger,"i");if(Ce(n,3))var I=uea(a,n,l);else l.dispose(),I=new il(bd(ke(n,1)),1E3*Ce(n,2));q=I;p.done();w=t=void 0;null==(w=(t=a).vO)||w.call(t,bd(ke(n,1)));return E.return(q);case 5:x=g.xa(E);b=x instanceof el?x:x instanceof Jj?new el(11,x):new el(12,x);a.logger.qx(b.code);z=y=void 0;null==(z=(y=a).onError)||z.call(y,b);a:{if(x instanceof Jj)switch(x.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(!I)throw b;return g.A(E,gl(d.getValue()),11);case 11:g.Oi(d); case 3:e++;E.Ya(2);break;case 4:throw b;}})}; tea=function(a){var b,c,d,e;g.B(function(f){switch(f.j){case 1:return b=void 0,g.va(f,4),g.A(f,vea(a),6);case 6:b=f.u;g.wa(f,5);break;case 4:if(c=g.xa(f),d=c instanceof Error?c:Error(String(c)),a.j){a.logger.qx(13);f.Ya(0);break}else a.logger.qx(14),b=new jl(d);case 5:return e=void 0,null==(e=a.j)||e.dispose(),a.j=b,a.u.resolve(),g.A(f,a.j.B.promise,1)}})}; wea=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}}; xea=function(a,b,c,d){var e=window,f="//web.archive.org/web/20220328145930/https://pagead2.googlesyndication.com/bg/"+g.Ih(c)+".js";c=e.document;var k={};b&&(k._scs_=b);k._bgu_=f;k._bgp_=d;k._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(k);e=Oh(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=bba(g.Tg("//web.archive.org/web/20220328145930/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.Ih(a)+".js"});g.Tj(e,a);c.getElementsByTagName("head")[0].appendChild(e)}; yea=function(a){var b={};g.tc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c}); oaa(a,function(c){return null===b[c.event]})}; ll=function(){this.md=0;this.j=!1;this.u=-1;this.Fq=!1;this.Ah=0}; ml=function(){this.Yc=null;this.j=!1}; nl=function(a){ml.call(this);this.u=a}; ol=function(){ml.call(this)}; pl=function(){ml.call(this)}; ql=function(){this.j={};this.u=!0;this.B={}}; rl=function(a,b,c){a.j[b]||(a.j[b]=new nl(c));return a.j[b]}; zea=function(a){a.j.queryid||(a.j.queryid=new pl)}; sl=function(a,b,c){(a=a.j[b])&&a.setValue(c)}; tl=function(a,b){if(g.Yf(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()}; ul=function(a){var b={},c=g.Nf(a.j,function(d){return d.j}); g.Mf(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.Yc?String(d.Yc):"";0e?encodeURIComponent(Vea(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Xea=function(a,b,c){b=b+"//web.archive.org/web/20220328145930/https://pagead2.googlesyndication.com"+c;var d=Wea(a)-c.length;if(0>d)return"";a.j.sort(function(p,q){return p-q}); c=null;for(var e="",f=0;f=n.length){d-=n.length;b+=n;e=a.B;break}c=null==c?k:c}}a="";null!=c&&(a=e+"trn="+c);return b+a}; Wea=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1}; Jl=function(a,b){this.j=a;this.depth=b}; Zea=function(){function a(l,m){return null==l?m:l} var b=Fl(),c=Math.max(b.length-1,0),d=Uea(b);b=d.j;var e=d.u,f=d.B,k=[];f&&k.push(new Jl([f.url,f.XF?2:0],a(f.depth,1)));e&&e!=f&&k.push(new Jl([e.url,2],0));b.url&&b!=f&&k.push(new Jl([b.url,0],a(b.depth,c)));d=g.Kl(k,function(l,m){return k.slice(0,k.length-m)}); !b.url||(f||e)&&b!=f||(e=Mea(b.url))&&d.push([new Jl([e,1],a(b.depth,c))]);d.push([]);return g.Kl(d,function(l){return Yea(c,l)})}; Yea=function(a,b){g.Ll(b,function(e){return 0<=e.depth}); var c=Ml(b,function(e,f){return Math.max(e,f.depth)},-1),d=saa(c+2); d[0]=a;g.tc(b,function(e){return d[e.depth+1]=e.j}); return d}; $ea=function(){var a=Zea();return g.Kl(a,function(b){return Il(b)})}; afa=function(a){zl.google_image_requests||(zl.google_image_requests=[]);var b=Nea("IMG",zl.document);b.src=a;zl.google_image_requests.push(b)}; Nl=function(a){var b="Ze";if(a.Ze&&a.hasOwnProperty(b))return a.Ze;var c=new a;a.Ze=c;a.hasOwnProperty(b);return c}; Ol=function(){this.u=new Hea;this.j=xl()?new yl:new wl}; bfa=function(){Pl();var a=zl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof zl.setInterval&&"function"===typeof zl.clearInterval&&"function"===typeof zl.setTimeout&&"function"===typeof zl.clearTimeout)}; cfa=function(){Pl();return $ea()}; dfa=function(){}; Pl=function(){return Nl(dfa).getContext()}; efa=function(a){g.F.call(this,a)}; hfa=function(){return[1,ffa,2,Ql,3,Ql,4,Ql,5,gfa]}; ifa=function(a){this.B=a;this.j=-1;this.u=this.C=0}; Rl=function(a,b){return function(){var c=g.Da.apply(0,arguments);if(-1Math.random())}; ufa=function(a){a&&am&&Ul()&&(am.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),am.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; vfa=function(){var a=bm;this.j=cm;this.YL="jserror";this.aI=!0;this.cE=null;this.u=this.nG;this.Rb=void 0===a?null:a}; wfa=function(a,b,c,d){return Rl(Sl().j.j,function(){try{if(a.Rb&&a.Rb.j){var e=a.Rb.start(b.toString(),3);var f=c();a.Rb.end(e)}else f=c()}catch(l){var k=a.aI;try{ufa(e),k=a.u(b,new dm(em(l)),void 0,d)}catch(m){a.nG(217,m)}if(!k)throw l;}return f})()}; gm=function(a,b,c){var d=fm;return Rl(Sl().j.j,function(){var e=g.Da.apply(0,arguments);return wfa(d,a,function(){return b.apply(void 0,e)},c)})}; em=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b}; dm=function(a){qfa.call(this,Error(a),{message:a})}; xfa=function(){zl&&"undefined"!=typeof zl.google_measure_js_timing&&(zl.google_measure_js_timing||bm.disable())}; yfa=function(a){fm.cE=function(b){g.tc(a,function(c){c(b)})}}; zfa=function(a,b){return wfa(fm,a,b,void 0)}; hm=function(a,b){return gm(a,b,void 0)}; im=function(a,b,c,d){fm.nG(a,b,c,d)}; jm=function(){return Date.now()-Afa}; Bfa=function(){var a=Sl().B,b=0<=km?jm()-km:-1,c=lm?jm()-mm:-1,d=0<=nm?jm()-nm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];im(637,Error(),.001);var f=b;-1!=c&&cd?500:k}; tm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; um=function(a){return a.right-a.left}; vm=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1}; wm=function(a,b,c){b instanceof g.Bh?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a}; xm=function(a,b,c){var d=new tm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c}; ym=function(a,b,c,d,e,f,k,l){this.C=a;this.N=b;this.B=c;this.J=d;this.j=e;this.D=f;this.u=k;this.K=l}; Dfa=function(a){var b=a!==a.top,c=a.top===Qea(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Qf(Cfa,function(k){return"function"===typeof f[k]})||(e=1)); return{Vj:f,compatibility:e,YZ:d}}; Efa=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; Ffa=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Dh(b.innerWidth,b.innerHeight)).round():Eba(b||window).round()}catch(d){return new g.Dh(-12245933,-12245933)}}; zm=function(a,b,c){try{a&&(b=b.top);var d=Ffa(a,b,void 0===c?!1:c),e=Gba(Oh(b.document).j);if(-12245933==d.width){var f=d.width;var k=new tm(f,f,f,f)}else k=new tm(e.y,e.x+d.width,e.y+d.height,e.x);return k}catch(l){return new tm(-12245933,-12245933,-12245933,-12245933)}}; g.Am=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; Bm=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; g.Dm=function(a,b,c){if("string"===typeof b)(b=Cm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Cm(c,d);f&&(c.style[f]=e)}}; Cm=function(a,b){var c=Gfa[b];if(!c){var d=xba(b);c=d;void 0===a.style[d]&&(d=(g.Gf?"Webkit":Em?"Moz":g.Mc?"ms":null)+zba(d),void 0!==a.style[d]&&(c=d));Gfa[b]=c}return c}; g.Fm=function(a,b){var c=a.style[xba(b)];return"undefined"!==typeof c?c:a.style[Cm(a,b)]||""}; Gm=function(a,b){var c=Nh(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; Hm=function(a,b){return Gm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.Jm=function(a,b,c){if(b instanceof g.Bh){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Im(d,!1);a.style.top=g.Im(b,!1)}; Km=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; Hfa=function(a){if(g.Mc&&!g.Ec(8))return a.offsetParent;var b=Nh(a),c=Hm(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Hm(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.Lm=function(a){var b=Nh(a),c=new g.Bh(0,0);var d=b?Nh(b):document;d=!g.Mc||g.Ec(9)||"CSS1Compat"==Oh(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Km(a);b=Gba(Oh(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; Jfa=function(a,b){var c=new g.Bh(0,0),d=Uh(Nh(a));if(!wc(d,"parent"))return c;do{var e=d==b?g.Lm(a):Ifa(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c}; g.Mm=function(a,b){a=Kfa(a);b=Kfa(b);return new g.Bh(a.x-b.x,a.y-b.y)}; Ifa=function(a){a=Km(a);return new g.Bh(a.left,a.top)}; Kfa=function(a){if(1==a.nodeType)return Ifa(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Bh(a.clientX,a.clientY)}; g.Nm=function(a,b,c){if(b instanceof g.Dh)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Im(b,!0);a.style.height=g.Im(c,!0)}; g.Im=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Om=function(a){var b=Lfa;if("none"!=Hm(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; Lfa=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Gf&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Km(a),new g.Dh(a.right-a.left,a.bottom-a.top)):new g.Dh(b,c)}; g.Pm=function(a,b){a.style.display=b?"":"none"}; Qm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; Mfa=function(a){return new tm(a.top,a.right,a.bottom,a.left)}; Nfa=function(a){var b=a.top||0,c=a.left||0;return new tm(b,c+(a.width||0),b+(a.height||0),c)}; Rm=function(a){return null!=a&&0<=a&&1>=a}; Ofa=function(){var a=g.Ab();return a?Sm("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return wb(a,b)})||wb(a,"OMI/")&&!wb(a,"XiaoMi/")?!0:wb(a,"Presto")&&wb(a,"Linux")&&!wb(a,"X11")&&!wb(a,"Android")&&!wb(a,"Mobi"):!1}; Pfa=function(){this.B=!Dl(zl.top);this.isMobileDevice=Cl()||Iea();var a=Fl();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.u?!1:a.jb.j?!1:typeof a.Yctypeof b.Yc?!1:a.Ycc++;){if(a===b)return!0;try{if(a=g.ci(a)||a){var d=Nh(a),e=d&&Uh(d),f=e&&e.frameElement;f&&(a=f)}}catch(k){break}}return!1}; oga=function(a,b,c){if(!a||!b)return!1;b=wm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Dl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Efa())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Nh(c))&&b.defaultView&&b.defaultView.frameElement)&&nga(b,a);var d=a===c;a=!d&&a&&gi(a,function(e){return e===c}); return!(b||d||a)}; pga=function(a,b,c,d){return Tm().B?!1:0>=um(a)||0>=a.getHeight()?!0:c&&d?zfa(208,function(){return oga(a,b,c)}):!1}; un=function(a,b,c){g.G.call(this);this.position=qga.clone();this.iB=this.xA();this.kG=-2;this.n_=Date.now();this.mQ=-1;this.lastUpdateTime=b;this.aB=null;this.Zz=!1;this.qB=null;this.opacity=-1;this.requestSource=c;this.pG=function(){}; this.zQ=function(){}; this.Zg=new Dea;this.Zg.Ro=a;this.Zg.j=a;this.Oo=!1;this.iq={zG:null,xG:null};this.UP=!0;this.Ey=null;this.Ct=this.CV=!1;Sl().J++;this.Ff=this.oF();this.jQ=-1;this.ge=null;this.zV=!1;this.featureSet=new ql;Cea(this.featureSet);rga(this);1==this.requestSource?sl(this.featureSet,"od",1):sl(this.featureSet,"od",0)}; rga=function(a){a=a.Zg.Ro;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:sga&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+yba()):!!a.getAttribute("data-"+yba());b&&(Tm().u=!0)}; vn=function(a,b){b!=a.Ct&&(a.Ct=b,a=Tm(),b?a.J++:0c?0:a}; vga=function(a,b,c){if(a.ge){a.ge.Kn();var d=a.ge.K,e=d.C,f=e.j;if(null!=d.J){var k=d.B;a.qB=new g.Bh(k.left-f.left,k.top-f.top)}f=a.kC()?Math.max(d.j,d.D):d.j;k={};null!==e.volume&&(k.volume=e.volume);e=a.tM(d);a.aB=d;a.Ja(f,b,c,!1,k,e,d.K)}}; wga=function(a){if(a.Zz&&a.Ey){var b=1==tl(a.featureSet,"od"),c=Tm().j,d=a.Ey,e=a.ge?a.ge.getName():"ns",f=new g.Dh(um(c),c.getHeight());c=a.kC();a={b_:e,qB:a.qB,P_:f,kC:c,md:a.Ff.md,J_:b};if(b=d.u){b.Kn();e=b.K;f=e.C.j;var k=null,l=null;null!=e.J&&f&&(k=e.B,k=new g.Bh(k.left-f.left,k.top-f.top),l=new g.Dh(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={b_:b.getName(),qB:k,P_:l,kC:c,J_:!1,md:e}}else c=null;c&&fga(d,a,c)}}; xga=function(a,b,c){b&&(a.pG=b);c&&(a.zQ=c)}; g.wn=function(){}; g.xn=function(a){return{value:a,done:!1}}; yga=function(){this.C=this.j=this.B=this.u=this.D=0}; zga=function(a){var b={};var c=g.Ua()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; Aga=function(){ll.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; yn=function(a){return Rm(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.ma+=b,a.Da+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.Ia+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Ra&&0=a.B/2:0=a.xa:!1:!1}; Mga=function(a){var b=Qm(a.Ff.md,2),c=a.wf.B,d=a.Ff,e=co(a),f=bo(e.C),k=bo(e.J),l=bo(d.volume),m=Qm(e.K,2),n=Qm(e.ma,2),p=Qm(d.md,2),q=Qm(e.ra,2),t=Qm(e.xa,2);d=Qm(d.Ah,2);a=a.Ao().clone();a.round();e=on(e,!1);return{O_:b,ex:c,jB:f,fB:k,Xv:l,kB:m,gB:n,md:p,lB:q,hB:t,Ah:d,position:a,oB:e}}; Oga=function(a,b){Nga(a.j,b,function(){return{O_:0,ex:void 0,jB:-1,fB:-1,Xv:-1,kB:-1,gB:-1,md:-1,lB:-1,hB:-1,Ah:-1,position:void 0,oB:[]}}); a.j[b]=Mga(a)}; Nga=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; ro=function(a){a=void 0===a?zl:a;an.call(this,new Xm(a,2))}; so=function(){var a=mha();Xm.call(this,zl.top,a,"geo")}; mha=function(){Sl();var a=Tm();return a.B||a.u?0:2}; nha=function(){}; to=function(){this.done=!1;this.j={zT:0,YK:0,Nha:0,TL:0,PF:-1,eU:0,dU:0,fU:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Wm(this)}; vo=function(){var a=uo;a.J||(a.J=!0,oha(a,function(){return a.C.apply(a,g.u(g.Da.apply(0,arguments)))}),a.C())}; pha=function(){Nl(nha);var a=Nl(mo);null!=a.j&&a.j.j?Sfa(a.j.j):Tm().update(zl)}; wo=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{pha();var d=jm(),e=Sl();e.D=d;if(null!=Nl(mo).j)for(e=0;eg.Xf(zha).length?null:Ml(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Aha[d[0]]||!Aha[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; Cha=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?ln(b.j,a.j):ln(b.u,a.j);case "tos":return a.u?kn(b.j,a.j):kn(b.u,a.j)}return 0}; Do=function(a,b,c,d){In.call(this,b,d);this.K=a;this.N=c}; Dha=function(){}; Eo=function(){}; Fo=function(){}; Go=function(a){In.call(this,"fully_viewable_audible_half_duration_impression",a)}; Ho=function(a){this.j=a}; Io=function(a,b){In.call(this,a,b)}; Jo=function(a){Jn.call(this,"measurable_impression",a)}; Ko=function(){Ho.apply(this,arguments)}; Lo=function(a,b,c){Yn.call(this,a,b,c)}; Mo=function(a){a=void 0===a?zl:a;an.call(this,new Xm(a,2))}; No=function(a,b,c){Yn.call(this,a,b,c)}; Oo=function(a){a=void 0===a?zl:a;an.call(this,new Xm(a,2))}; Po=function(){Xm.call(this,zl,2,"mraid");this.Da=0;this.ma=this.ra=!1;this.K=null;this.u=Dfa(this.B);this.C.j=new tm(0,0,0,0);this.Ha=!1}; Qo=function(a,b,c){a.mp("addEventListener",b,c)}; Hha=function(a){Sl().C=!!a.mp("isViewable");Qo(a,"viewableChange",Eha);"loading"===a.mp("getState")?Qo(a,"ready",Fha):Gha(a)}; Gha=function(a){"string"===typeof a.u.Vj.AFMA_LIDAR?(a.ra=!0,Iha(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))}; Iha=function(a){a.ma=!1;var b=1==tl(Sl().featureSet,"rmmt"),c=!!a.mp("isViewable");(b?!c:1)&&Pl().setTimeout(hm(524,function(){a.ma||(Jha(a),im(540,Error()),a.K="mt",a.fail("w"))}),500); Kha(a);Qo(a,a.u.Vj.AFMA_LIDAR,Lha)}; Kha=function(a){var b=1==tl(Sl().featureSet,"sneio"),c=void 0!==a.u.Vj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Vj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Vj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Vj.AFMA_LIDAR_EXP_1=!b)}; Jha=function(a){a.mp("removeEventListener",a.u.Vj.AFMA_LIDAR,Lha);a.ra=!1}; Mha=function(a,b){if("loading"===a.mp("getState"))return new g.Dh(-1,-1);b=a.mp(b);if(!b)return new g.Dh(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Dh(-1,-1):new g.Dh(a,b)}; Fha=function(){try{var a=Nl(Po);a.mp("removeEventListener","ready",Fha);Gha(a)}catch(b){im(541,b)}}; Lha=function(a,b){try{var c=Nl(Po);c.ma=!0;var d=a?new tm(a.y,a.x+a.width,a.y+a.height,a.x):new tm(0,0,0,0);var e=jm(),f=Vm();var k=new xm(e,f,c);k.j=d;k.volume=b;c.Ho(k)}catch(l){im(542,l)}}; Eha=function(a){var b=Sl(),c=Nl(Po);a&&!b.C&&(b.C=!0,c.Ha=!0,c.K&&c.fail("w",!0))}; Ro=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.kV,a.firstquartile=this.fV,a.midpoint=this.hV,a.thirdquartile=this.lV,a.complete=this.dV,a.pause=this.jH,a.resume=this.EP,a.skip=this.jV,a.viewable_impression=this.ql,a.mute=this.Ku,a.unmute=this.Ku,a.fullscreen=this.gV,a.exitfullscreen=this.eV,a.fully_viewable_audible_half_duration_impression=this.ql,a.measurable_impression=this.ql,a.abandon=this.jH,a.engagedview=this.ql,a.impression=this.ql,a.creativeview=this.ql, a.progress=this.Ku,a.custom_metric_viewable=this.ql,a.bufferstart=this.jH,a.bufferfinish=this.EP,a.audio_measurable=this.ql,a.audio_audible=this.ql,a);a={};this.N=(a.overlay_resize=this.iV,a.abandon=this.FF,a.close=this.FF,a.collapse=this.FF,a.overlay_unmeasurable_impression=function(b){return go(b,"overlay_unmeasurable_impression",Vm())},a.overlay_viewable_immediate_impression=function(b){return go(b,"overlay_viewable_immediate_impression",Vm())},a.overlay_unviewable_impression=function(b){return go(b, "overlay_unviewable_impression",Vm())},a.overlay_viewable_end_of_session_impression=function(b){return go(b,"overlay_viewable_end_of_session_impression",Vm())},a); Sl().u=3;Nha(this);this.B=!1}; So=function(a,b,c,d){b=a.iy(null,d,!0,b);b.C=c;fha([b],a.B);return b}; Oha=function(a,b,c){yea(b);var d=a.j;g.tc(b,function(e){var f=g.Kl(e.criteria,function(k){var l=Bha(k);if(null==l)k=null;else if(k=new yha,null!=l.visible&&(k.j=l.visible/100),null!=l.audible&&(k.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=jb(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(k.B=l,k.C=-1):(k.B=-1,k.C=l);k.D=void 0===m?"tos":m}return k}); Sm(f,function(k){return null==k})||Kga(c,new Do(e.id,e.event,f,d))})}; Pha=function(){var a=[],b=Sl();a.push(Nl(so));tl(b.featureSet,"mvp_lv")&&a.push(Nl(Po));b=[new Mo,new Oo];b.push(new no(a));b.push(new ro(zl));return b}; Qha=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=jm(),c=Sl(),d=Tm();km=b;c.B=79463069;"o"!==a.u&&(tha=Qea(zl));if(bfa()){uo.j.YK=0;uo.j.PF=jm()-b;var e=Pha(),f=Nl(mo);f.u=e;hha(f,function(){To()})?uo.done||(qha(),Ym(f.j.j,a),vo()):d.B?To():vo()}else Uo=!0}catch(k){throw ko.reset(),k; }}}; Wo=function(a){uo.u.cancel();Vo=a;uo.done=!0}; Xo=function(a){if(a.u)return a.u;var b=Nl(mo).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u}; Yo=function(a,b,c){if(null==a.j)return b.Pu|=4,!1;a=Rha(a.j,c,b);b.Pu|=a;return 0==a}; To=function(){var a=[new ro(zl)],b=Nl(mo);b.u=a;hha(b,function(){Wo("i")})?uo.done||(qha(),vo()):Wo("i")}; Sha=function(a,b){if(!a.ib){var c=go(a,"start",Vm());c=a.kH.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="922";null!==zo&&(d.v=zo);Yi(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=uha();Yi(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//web.archive.org/web/20220328145930/https://pagead2.googlesyndication.com/pagead/gen_204?"+dn(cn(new bn,d));dga(b);a.ib=!0}}; Zo=function(a,b,c){wo(uo,[a],!Vm());Oga(a,c);4!=c&&Nga(a.ra,c,a.xA);return go(a,b,Vm())}; Nha=function(a){sha(function(){var b=Tha();null!=a.u&&(b.sdk=a.u);var c=Nl(mo);null!=c.j&&(b.avms=c.j.getName());return b})}; Uha=function(a,b,c,d){if(a.B)var e=jo(ko,b);else e=bha(ko,c),null!==e&&e.Uf!==b&&(a.qw(e),e=null);e||(b=a.iy(c,jm(),!1,b),0==ko.u.length&&(Sl().B=79463069),gha([b]),e=b,e.C=Xo(a),d&&(e.Pa=d));return e}; Vha=function(a){g.tc(ko.j,function(b){3==b.Ig&&a.qw(b)})}; Wha=function(a,b){var c=a[b];void 0!==c&&0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; Jia=function(a){if(!a)return nh;var b=document.createElement("div").style;Fia(a).forEach(function(c){var d=g.Gf&&c in Gia?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ib(d,"--")||ib(d,"var")||(c=Eia(Hia,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Cia(c),null!=c&&Eia(Iia,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return rba(g.Tg("Output of CSS sanitizer"),b.cssText||"")}; Fia=function(a){g.Oa(a)?a=g.ic(a):(a=g.Xf(a),g.fc(a,"cssText"));return a}; g.Kp=function(a){var b,c=b=0,d=!1;a=a.split(Kia);for(var e=0;eg.Ua()}; g.Up=function(a){this.j=a}; Uia=function(){}; Vp=function(){}; Wp=function(a){this.j=a}; Xp=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}; Via=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}; Zp=function(a,b){this.u=a;this.j=null;if(g.Mc&&!g.Ec(9)){Yp||(Yp=new g.Cp);this.j=Yp.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Yp.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}}; $p=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Wia[b]})}; aq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; bq=function(a,b){this.u=a;this.j=b+"::"}; g.cq=function(a){var b=new Xp;return b.isAvailable()?a?new bq(b,a):b:null}; dq=function(a,b){this.j=a;this.Yc=b}; eq=function(a){this.j=[];if(a)a:{if(a instanceof eq){var b=a.zm();a=a.Mi();if(0>=this.j.length){for(var c=this.j,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; fq=function(){eq.call(this)}; gq=function(){}; Yia=function(){var a=g.Da.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.u(g.Da.apply(0,arguments))))}})}; Zia=function(){var a=g.Da.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} c=b(c,d);var f={getState:c.getState,dispatch:function(k){return e.apply(null,[k].concat(g.u(g.Da.apply(1,arguments))))}}; d=a.map(function(k){return k(f)}); e=Yia.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}}; hq=function(){return Math.random().toString(36).substring(7).split("").join(".")}; $ia=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:iq}))throw Error('Reducer "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+hq()}))throw Error('Reducer "'+ b+"\" returned undefined when probed with a random type. Don't try to handle "+(iq+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; aja=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m} function f(w){if("function"!==typeof w)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(w);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details."); x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(w),1);n=null}}} function k(w){if("object"!==typeof w||null===w)var x=!1;else{for(x=w;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(w)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof w.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,w)}finally{q=!1}x=n=p;for(var y=0;ym.status,t=500<=m.status&&600>m.status;if(n||q||t)p=uma(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}}, b.method,d,b.headers,b.responseType,b.withCredentials); if(b.onTimeout&&0=m||403===pr(p.xhr))return ui(new Br("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0=f)vna(a,m,w,k,x,b.join(),e),l=x;z.Ya(2);break;case 3:return z.return(Promise.reject(l))}})}; vna=function(a,b,c,d,e,f,k){b=c-b;e?(e instanceof g.Hs&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Bs("QUOTA_EXCEEDED",{dbName:Gs(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof g.Hs&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Bs("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),wna(a,!1,d,f,b,k.tag),As(e)):wna(a,!0,d, f,b,k.tag)}; wna=function(a,b,c,d,e,f){Bs("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; Ts=function(a){this.j=a}; g.Zs=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; xna=function(a,b){return g.$s(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; g.zna=function(a,b,c){return"getAll"in IDBObjectStore.prototype?g.Qs(a.j.getAll(b,c)):yna(a,b,c)}; yna=function(a,b,c){var d=[];return g.$s(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; Bna=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.Qs(a.j.getAllKeys(void 0,void 0)):Ana(a)}; Ana=function(a){var b=[];return g.Cna(a,{query:void 0},function(c){b.push(c.zA());return c.continue()}).then(function(){return b})}; g.Xs=function(a,b,c){return g.Qs(a.j.put(b,c))}; g.$s=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return at(a).then(function(d){return Rs(d,c)})}; g.Cna=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return Ss(a).then(function(e){return Rs(e,c)})}; Ys=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.Hs;for(var f=b.j.objectStoreNames,k=[],l=0;l=z},y); y.done.catch(function(z){e(z)})}catch(z){e(z)}}); k.addEventListener("success",function(){var w=k.result;m&&w.addEventListener("versionchange",function(){m(f())}); w.addEventListener("close",function(){Bs("IDB_UNEXPECTEDLY_CLOSED",{dbName:Gs(a),dbVersion:w.version});n&&n()}); d(f())}); k.addEventListener("error",function(){e(k.error)}); l&&k.addEventListener("blocked",function(){l()})})}; Gna=function(a,b,c){c=void 0===c?{}:c;return Fna(a,b,c)}; ct=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.B(function(k){if(1==k.j)return g.va(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.A(k,qna(c),4); if(2!=k.j)return g.wa(k,0);f=g.xa(k);throw Ls(f,a,"",-1);})}; Hna=function(a){return new Promise(function(b){Cma(function(){b()},a)})}; dt=function(a,b){this.name=a;this.options=b;this.C=!0;this.J=this.D=0;this.u=500}; Ina=function(a,b){return new g.Hs("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.et=function(a,b){if(!b)throw g.Ms("openWithToken",Gs(a.name));return a.open()}; Jna=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,g.et(ft,b),2);c=d.u;return d.return(g.Ws(c,["databases"],{Jc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.Xs(f,a).then(function(){})})}))})}; gt=function(a,b){var c;return g.B(function(d){if(1==d.j)return a?g.A(d,g.et(ft,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})}; Kna=function(a,b){var c,d;return g.B(function(e){return 1==e.j?(c=[],g.A(e,g.et(ft,b),2)):3!=e.j?(d=e.u,g.A(e,g.Ws(d,["databases"],{Jc:!0,mode:"readonly"},function(f){c.length=0;return g.$s(f.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})}; Lna=function(a){return Kna(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)}; Mna=function(){var a,b,c,d;return g.B(function(e){switch(e.j){case 1:a=ts();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if($r&&Xr()&&!Yr()||g.ht)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.A(e,Jna(d,jt),4);case 4:return g.A(e,gt("yt-idb-test-do-not-use",jt),5);case 5:return e.return(!0);case 2:return g.xa(e),e.return(!1)}})}; Nna=function(){if(void 0!==kt)return kt;zs=!0;return kt=Mna().then(function(a){zs=!1;var b;if(null!=(b=rs())&&b.j){var c;b={hasSucceededOnce:(null==(c=ts())?void 0:c.hasSucceededOnce)||a};var d;null==(d=rs())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; lt=function(){return g.Ka("ytglobal.idbToken_")||void 0}; g.mt=function(){var a=lt();return a?Promise.resolve(a):Nna().then(function(b){(b=b?jt:void 0)&&g.Ja("ytglobal.idbToken_",b,void 0);return b})}; Ona=function(a){if(!g.Es())throw a=new g.Hs("AUTH_INVALID",{dbName:a}),As(a),a;var b=g.Ds();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; Pna=function(a,b,c,d){var e,f,k,l,m,n;return g.B(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.A(p,g.mt(),2);case 2:k=p.u;if(!k)throw l=g.Ms("openDbImpl",a,b),g.Q("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),As(l),l;Fs(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Ona(a);g.va(p,3);return g.A(p,Jna(m,k),5);case 5:return g.A(p,Gna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.xa(p),g.va(p,7),g.A(p,gt(m.actualName, k),9);case 9:g.wa(p,8);break;case 7:g.xa(p);case 8:throw n;}})}; Qna=function(a,b,c){c=void 0===c?{}:c;return Pna(a,b,!1,c)}; Rna=function(a,b,c){c=void 0===c?{}:c;return Pna(a,b,!0,c)}; Sna=function(a,b){b=void 0===b?{}:b;var c,d;return g.B(function(e){if(1==e.j)return g.A(e,g.mt(),2);if(3!=e.j){c=e.u;if(!c)return e.return();Fs(a);d=Ona(a);return g.A(e,ct(d.actualName,b),3)}return g.A(e,gt(d.actualName,c),0)})}; Tna=function(a,b,c){a=a.map(function(d){return g.B(function(e){return 1==e.j?g.A(e,ct(d.actualName,b),2):g.A(e,gt(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; Una=function(){var a=void 0===a?{}:a;var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.mt(),2);if(3!=d.j){b=d.u;if(!b)return d.return();Fs("LogsDatabaseV2");return g.A(d,Lna(b),3)}c=d.u;return g.A(d,Tna(c,a,b),0)})}; Vna=function(a,b){b=void 0===b?{}:b;var c;return g.B(function(d){if(1==d.j)return g.A(d,g.mt(),2);if(3!=d.j){c=d.u;if(!c)return d.return();Fs(a);return g.A(d,ct(a,b),3)}return g.A(d,gt(a,c),0)})}; nt=function(a){this.ze=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.Bt=function(){}; this.now=Date.now;this.uw=!1;var b;this.iQ=null!=(b=a.iQ)?b:100;var c;this.HP=null!=(c=a.HP)?c:1;var d;this.AP=null!=(d=a.AP)?d:2592E6;var e;this.rP=null!=(e=a.rP)?e:12E4;var f;this.GP=null!=(f=a.GP)?f:5E3;var k;this.fd=null!=(k=a.fd)?k:void 0;this.aA=!!a.aA;var l;this.Pz=null!=(l=a.Pz)?l:.1;var m;this.NB=null!=(m=a.NB)?m:10;a.handleError&&(this.handleError=a.handleError);a.Bt&&(this.Bt=a.Bt);a.uw&&(this.uw=a.uw);this.kb=a.kb;this.Sj=a.Sj;this.sf=a.sf;this.hf=a.hf;this.cn=a.cn;this.gH=a.gH;this.BG= a.BG;this.fd&&(!this.kb||this.kb("networkless_logging"))&&Wna(this)}; Wna=function(a){a.fd&&!a.uw&&(a.ze=!0,a.aA&&Math.random()<=a.Pz&&a.sf.TT(a.fd),Xna(a),a.hf.Me()&&a.Jy(),a.hf.Oa(a.gH,a.Jy.bind(a)),a.hf.Oa(a.BG,a.rL.bind(a)))}; Yna=function(a,b,c,d){c=void 0===c?{}:c;if(a.fd&&a.ze){var e={url:b,options:c,timestamp:a.now(),status:"NEW",sendCount:0};a.kb&&a.kb("nwl_skip_retry")&&(e.skipRetry=d);if(a.hf.Me()||a.kb&&a.kb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=c.onError?c.onError:function(){}; c.onError=function(k,l){return g.B(function(m){if(1==m.j)return g.A(m,a.sf.set(e,a.fd).catch(function(n){ot(a,n)}),2); f(k,l);g.ua(m)})}}a.cn(b,c,e.skipRetry)}else a.sf.set(e,a.fd).catch(function(k){a.cn(b,c,e.skipRetry); ot(a,k)})}else d=a.kb&&a.kb("nwl_skip_retry")&&d,a.cn(b,c,d)}; pt=function(a,b){var c,d;return g.B(function(e){switch(e.j){case 1:if(!a.fd)throw c=g.Ms("immediateSend"),c;if(void 0===b.id){e.Ya(2);break}return g.A(e,a.sf.NV(b.id,a.fd),3);case 3:(d=e.u)?b=d:a.Bt(Error("The request cannot be found in the database."));case 2:if(Zna(a,b,a.AP)){e.Ya(4);break}a.Bt(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.Ya(5);break}return g.A(e,a.sf.Vs(b.id,a.fd),5);case 5:return e.return();case 4:b.skipRetry||(b=$na(a,b));if(!b){e.Ya(0); break}if(!b.skipRetry||void 0===b.id){e.Ya(8);break}return g.A(e,a.sf.Vs(b.id,a.fd),8);case 8:a.cn(b.url,b.options,!!b.skipRetry),g.ua(e)}})}; $na=function(a,b){if(!a.fd)throw g.Ms("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:k=aoa(f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&k||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.NB)){n.Ya(2);break}if(!a.hf.dn){n.Ya(3);break}return g.A(n,a.hf.dn(),3);case 3:if(a.hf.Me()){n.Ya(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||void 0===(null==(l=b)?void 0:l.id)){n.Ya(6);break}return g.A(n,a.sf.FH(b.id,a.fd,!1),6);case 6:return n.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&& !k&&a.potentialEsfErrorCounter>a.NB)return n.return();a.potentialEsfErrorCounter++;if(void 0===(null==(m=b)?void 0:m.id)){n.Ya(8);break}return b.sendCount=c?!1:!0}; Xna=function(a){if(!a.fd)throw g.Ms("retryQueuedRequests");a.sf.uM("QUEUED",a.fd).then(function(b){b&&!Zna(a,b,a.rP)?a.Sj.dg(function(){return g.B(function(c){if(1==c.j)return void 0===b.id?c.Ya(2):g.A(c,a.sf.FH(b.id,a.fd),2);Xna(a);g.ua(c)})}):a.hf.Me()&&a.Jy()})}; ot=function(a,b){a.NQ&&!a.hf.Me()?a.NQ(b):a.handleError(b)}; aoa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0}; qt=function(a,b){this.version=a;this.args=b}; rt=function(a,b){this.topic=a;this.j=b}; ut=function(a,b){var c=tt();c&&c.publish.call(c,a.toString(),a,b)}; coa=function(a,b,c){var d=tt();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,k){var l=g.Ka("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(vt[e])try{if(k&&a instanceof rt&&a!=f)try{var m=a.j,n=k;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Ap){var p=new m;m.Ap=p.version}var q=m.Ap}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=Reflect.construct(m, g.ic(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,k)}catch(t){g.br(t)}},boa[a.toString()]?g.Qr()?g.kp.dg(l):g.rr(l,0):l())}); vt[e]=!0;wt[a.toString()]||(wt[a.toString()]=[]);wt[a.toString()].push(e);return e}; zt=function(a,b,c){var d=coa(a,function(e){b.apply(c,arguments);xt(d)},c); return d}; xt=function(a){var b=tt();b&&("number"===typeof a&&(a=[a]),g.tc(a,function(c){b.unsubscribeByKey(c);delete vt[c]}))}; tt=function(){return g.Ka("ytPubsub2Pubsub2Instance")}; At=function(a,b){dt.call(this,a,b);this.options=b;Fs(a)}; doa=function(a,b){var c;return function(){c||(c=new At(a,b));return c}}; g.Bt=function(a,b){return doa(a,b)}; eoa=function(){if(Ct)return Ct();var a={};Ct=g.Bt("LogsDatabaseV2",{Sq:(a.LogsRequestsStore={Hn:2},a),yy:!1,upgrade:function(b,c,d){c(2)&&g.Us(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Zs(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Vs(b,"sapisid");c(9)&&Vs(b,"SWHealthLog")}, version:9});return Ct()}; Dt=function(a){return g.et(eoa(),a)}; Et=function(a,b){var c,d,e,f;return g.B(function(k){if(1==k.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(k,Dt(b),2);if(3!=k.j)return d=k.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(k,tna(d,e),3);f=k.u;c.s_=(0,g.R)();foa(c);return k.return(f)})}; goa=function(a,b){var c,d,e,f,k,l,m;return g.B(function(n){if(1==n.j)return c={startTime:(0,g.R)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(n,Dt(b),2);if(3!=n.j)return d=n.u,e=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],k=[a,e,(0,g.R)()],l=IDBKeyRange.bound(f,k),m=void 0,g.A(n,g.Ws(d,["LogsRequestsStore"],{mode:"readwrite",Jc:!0},function(p){return g.bt(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=q.getValue(),"NEW"=== a&&(m.status="QUEUED",q.update(m)))})}),3); c.s_=(0,g.R)();foa(c);return n.return(m)})}; hoa=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Dt(b),2);c=d.u;return d.return(g.Ws(c,["LogsRequestsStore"],{mode:"readwrite",Jc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(k){if(k)return k.status="QUEUED",g.Xs(f,k).then(function(){return k})})}))})}; Ft=function(a,b,c){c=void 0===c?!0:c;var d;return g.B(function(e){if(1==e.j)return g.A(e,Dt(b),2);d=e.u;return e.return(g.Ws(d,["LogsRequestsStore"],{mode:"readwrite",Jc:!0},function(f){var k=f.objectStore("LogsRequestsStore");return k.get(a).then(function(l){return l?(l.status="NEW",c&&(l.sendCount+=1),g.Xs(k,l).then(function(){return l})):g.Os.resolve(void 0)})}))})}; Gt=function(a,b){var c;return g.B(function(d){if(1==d.j)return g.A(d,Dt(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})}; ioa=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,Dt(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.Ws(b,["LogsRequestsStore"],{mode:"readwrite",Jc:!0},function(e){return g.$s(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; joa=function(){g.B(function(a){return g.A(a,Una(),0)})}; foa=function(a){g.Q("nwl_csi_killswitch")||.01>=Math.random()&&ut("nwl_transaction_latency_payload",a)}; loa=function(a){return g.et(koa(),a)}; moa=function(a){var b,c;g.B(function(d){if(1==d.j)return g.A(d,loa(a),2);b=d.u;c=(0,g.R)()-2592E6;return g.A(d,g.Ws(b,["SWHealthLog"],{mode:"readwrite",Jc:!0},function(e){return g.$s(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; noa=function(a){var b;return g.B(function(c){if(1==c.j)return g.A(c,loa(a),2);b=c.u;return g.A(c,b.clear("SWHealthLog"),0)})}; g.Ht=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Ur())a&&(a=g.bh(g.eh(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.qh(sh(a)).toString(),a=g.Gh(g.Qi(a))),g.kb(a)||(a=Wh("IFRAME",{src:'javascript:""',style:"display:none"}),Nh(a).body.appendChild(a)));else if(e)zr(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)zr(a,b,"GET","",d);else{b:{try{var f=new wea({url:a});if(f.B&&f.u||f.C){var k=Ui(g.Wi(5,a));var l=!(!k|| !k.endsWith("/aclk")||"1"!==rj(a,"ri"));break b}}catch(m){}l=!1}l?ooa(a)?(b&&b(),c=!0):c=!1:c=!1;c||poa(a,b)}}; ooa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; poa=function(a,b){var c=new Image,d=""+qoa++;It[d]=c;c.onload=c.onerror=function(){b&&It[d]&&b();delete It[d]}; c.src=a}; Jt=function(){this.j=new Map;this.u=!1}; Kt=function(){if(!Jt.j){var a=g.Ka("yt.networkRequestMonitor.instance")||new Jt;g.Ja("yt.networkRequestMonitor.instance",a,void 0);Jt.j=a}return Jt.j}; Mt=function(){Lt||(Lt=new qs("yt.offline"));return Lt}; roa=function(a){if(g.Q("offline_error_handling")){var b=Mt().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Mt().set("errors",b,2592E3,!0)}}; soa=function(){if(g.Q("offline_error_handling")){var a=Mt().get("errors",!0);if(a){for(var b in a)if(a[b]){var c=new g.Cs(b,"sent via offline_errors");c.name=a[b].name;c.stack=a[b].stack;c.level=a[b].level;g.br(c)}Mt().set("errors",{},2592E3,!0)}}}; Nt=function(){g.Fg.call(this);var a=this;this.N=0;this.J=this.C=!1;this.u=this.wF();g.Q("use_shared_nsm")?(this.j=pia(),g.Q("use_shared_nsm_and_keep_yt_online_updated")&&(this.j.Oa("networkstatus-online",function(){a.u=!0;a.J&&soa()}),this.j.Oa("networkstatus-offline",function(){a.u=!1}))):(toa(this),uoa(this))}; voa=function(){if(!Nt.j){var a=g.Ka("yt.networkStatusManager.instance")||new Nt;g.Ja("yt.networkStatusManager.instance",a,void 0);Nt.j=a}return Nt.j}; uoa=function(a){window.addEventListener("online",function(){return g.B(function(b){if(1==b.j)return g.A(b,a.dn(),2);a.J&&soa();g.ua(b)})})}; toa=function(a){window.addEventListener("offline",function(){return g.B(function(b){return g.A(b,a.dn(),0)})})}; woa=function(a){a.N=g.Nr(0,function(){return g.B(function(b){if(1==b.j)return a.u?a.wF()||!a.C?b.Ya(3):g.A(b,a.dn(),3):g.A(b,a.dn(),3);woa(a);g.ua(b)})},xoa)}; g.Ot=function(a){a=void 0===a?{}:a;g.Fg.call(this);var b=this;this.u=this.K=0;this.C="ytnetworkstatus-offline";this.D="ytnetworkstatus-online";g.Q("use_shared_nsm")&&(this.C="networkstatus-offline",this.D="networkstatus-online");this.j=voa();var c=g.Ka("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.j);c&&c(a.UL);a.EN&&(c=g.Ka("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.j))&&c();if(c=g.Ka("yt.networkStatusManager.instance.listen").bind(this.j))a.TB?(this.TB= a.TB,c(this.D,function(){yoa(b,"publicytnetworkstatus-online")}),c(this.C,function(){yoa(b,"publicytnetworkstatus-offline")})):(c(this.D,function(){b.dispatchEvent("publicytnetworkstatus-online")}),c(this.C,function(){b.dispatchEvent("publicytnetworkstatus-offline")}))}; yoa=function(a,b){a.TB?a.u?(g.kp.Gi(a.K),a.K=g.kp.dg(function(){a.J!==b&&(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)())},a.TB-((0,g.R)()-a.u))):(a.dispatchEvent(b),a.J=b,a.u=(0,g.R)()):a.dispatchEvent(b)}; Pt=function(){nt.call(this,{sf:{TT:ioa,Vs:Gt,uM:goa,NV:hoa,FH:Ft,set:Et},hf:zoa(),handleError:g.br,Bt:dr,cn:Aoa,now:g.R,NQ:roa,Sj:g.Pr(),gH:"publicytnetworkstatus-online",BG:"publicytnetworkstatus-offline",aA:!0,Pz:.1,NB:g.Yq("potential_esf_error_limit",10),kb:g.Q,uw:!(g.Es()&&(g.Q("embeds_web_nwl_disable_nocookie")?"www.youtube-nocookie.com"!==g.Xi(document.location.toString()):1))});this.u=new g.Pj;g.Q("networkless_immediately_drop_all_requests")&&joa();Vna("LogsDatabaseV2")}; Qt=function(){var a=g.Ka("yt.networklessRequestController.instance");a||(a=new Pt,g.Ja("yt.networklessRequestController.instance",a,void 0),g.Q("networkless_logging")&&g.mt().then(function(b){a.fd=b;Wna(a);a.u.resolve();a.aA&&Math.random()<=a.Pz&&a.fd&&moa(a.fd);g.Q("networkless_immediately_drop_sw_health_store")&&Boa(a)})); return a}; Boa=function(a){var b;g.B(function(c){if(!a.fd)throw b=g.Ms("clearSWHealthLogsDb"),b;return c.return(noa(a.fd).catch(function(d){a.handleError(d)}))})}; Aoa=function(a,b,c){g.Q("use_cfr_monitor")&&Coa(a,b);var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.R)());c&&0===Object.keys(b).length?g.Ht(a):g.Ar(a,b)}; zoa=function(){Rt||(Rt=new g.Ot({EN:!0,UL:!0}));return Rt}; Coa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Kt().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Kt().requestComplete(a,!0);d(e,f)}}; Doa=function(a,b){function c(d){var e=St().Me();if(!Tt()||!d||e&&g.Q("vss_networkless_bypass_write"))Ut(a,b);else{var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};Et(f,d).then(function(k){f.id=k;St().Me()&&Vt(f)}).catch(function(k){Vt(f); Wt(k)})}} b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.mt().then(function(d){c(d)}):c(lt())}; Xt=function(a,b,c){function d(e){if(Tt()&&e){var f={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0};g.Q("nwl_skip_retry")&&(f.skipRetry=c);if(St().Me()||g.Q("nwl_aggressive_send_then_write")&&!f.skipRetry){if(!f.skipRetry){var k=b.onError?b.onError:function(){}; b.onError=function(l,m){return g.B(function(n){if(1==n.j)return g.A(n,Et(f,e).catch(function(p){Wt(p)}),2); k(l,m);g.ua(n)})}}Ut(a,b,f.skipRetry)}else Et(f,e).catch(function(l){Ut(a,b,g.Q("nwl_skip_retry")&&c); Wt(l)})}else Ut(a,b,g.Q("nwl_skip_retry")&&c)} b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.mt().then(function(e){d(e)}):d(lt())}; Yt=function(a,b){function c(d){if(Tt()&&d){var e={url:a,options:b,timestamp:(0,g.R)(),status:"NEW",sendCount:0},f=!1,k=b.onSuccess?b.onSuccess:function(){}; e.options.onSuccess=function(m,n){g.Q("use_cfr_monitor")&&Kt().requestComplete(e.url,!0);void 0!==e.id?Gt(e.id,d):f=!0;g.Q("vss_network_hint")&&St().Qm(!0);k(m,n)}; if(g.Q("use_cfr_monitor")){var l=b.onError?b.onError:function(){}; e.options.onError=function(m,n){Kt().requestComplete(e.url,!1);l(m,n)}}Ut(e.url,e.options); Et(e,d).then(function(m){e.id=m;f&&Gt(e.id,d)}).catch(function(m){Wt(m)})}else Ut(a,b)} b=void 0===b?{}:b;g.Q("skip_is_supported_killswitch")?g.mt().then(function(d){c(d)}):c(lt())}; Eoa=function(){var a=lt();if(!a)throw g.Ms("throttleSend");Zt||(Zt=g.kp.dg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,goa("NEW",a),2);if(3!=c.j)return b=c.u,b?g.A(c,Vt(b),3):(g.kp.Gi(Zt),Zt=0,c.return());Zt&&(Zt=0,Eoa());g.ua(c)})},100))}; Vt=function(a){var b,c,d;return g.B(function(e){switch(e.j){case 1:b=lt();if(!b)throw c=g.Ms("immediateSend"),c;if(void 0===a.id){e.Ya(2);break}return g.A(e,hoa(a.id,b),3);case 3:(d=e.u)?a=d:dr(Error("The request cannot be found in the database."));case 2:var f=a.timestamp;if(!(2592E6<=(0,g.R)()-f)){e.Ya(4);break}dr(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ya(5);break}return g.A(e,Gt(a.id,b),5);case 5:return e.return();case 4:a.skipRetry||(a=Foa(a)); f=a;var k,l;if(null==f?0:null==(k=f.options)?0:null==(l=k.postParams)?0:l.requestTimeMs)f.options.postParams.requestTimeMs=Math.round((0,g.R)());a=f;if(!a){e.Ya(0);break}if(!a.skipRetry||void 0===a.id){e.Ya(8);break}return g.A(e,Gt(a.id,b),8);case 8:Ut(a.url,a.options,!!a.skipRetry),g.ua(e)}})}; Foa=function(a){var b=lt();if(!b)throw g.Ms("updateRequestHandlers");var c=a.options.onError?a.options.onError:function(){}; a.options.onError=function(e,f){var k,l,m;return g.B(function(n){switch(n.j){case 1:g.Q("use_cfr_monitor")&&Kt().requestComplete(a.url,!1);k=aoa(f);if(!(g.Q("nwl_consider_error_code")&&k||!g.Q("nwl_consider_error_code")&&Goa()<=g.Yq("potential_esf_error_limit",10))){n.Ya(2);break}if(g.Q("skip_checking_network_on_cfr_failure")&&(!g.Q("skip_checking_network_on_cfr_failure")||Kt().isEndpointCFR(a.url))){n.Ya(3);break}return g.A(n,St().dn(),3);case 3:if(St().Me()){n.Ya(2);break}c(e,f);if(!g.Q("nwl_consider_error_code")|| void 0===(null==(l=a)?void 0:l.id)){n.Ya(6);break}return g.A(n,Ft(a.id,b,!1),6);case 6:return n.return();case 2:if(g.Q("nwl_consider_error_code")&&!k&&Goa()>g.Yq("potential_esf_error_limit",10))return n.return();g.Ka("ytNetworklessLoggingInitializationOptions")&&$t.potentialEsfErrorCounter++;au++;if(void 0===(null==(m=a)?void 0:m.id)){n.Ya(8);break}return 1>a.sendCount?g.A(n,Ft(a.id,b),12):g.A(n,Gt(a.id,b),8);case 12:g.kp.dg(function(){St().Me()&&Eoa()},5E3); case 8:c(e,f),g.ua(n)}})}; var d=a.options.onSuccess?a.options.onSuccess:function(){}; a.options.onSuccess=function(e,f){var k;return g.B(function(l){if(1==l.j)return g.Q("use_cfr_monitor")&&Kt().requestComplete(a.url,!0),void 0===(null==(k=a)?void 0:k.id)?l.Ya(2):g.A(l,Gt(a.id,b),2);g.Q("vss_network_hint")&&St().Qm(!0);d(e,f);g.ua(l)})}; return a}; St=function(){if(g.Q("use_new_nwl"))return zoa();bu||(bu=new g.Ot({EN:!0,UL:!0}));return bu}; Wt=function(a){St().Me()?g.br(a):roa(a)}; Ut=function(a,b,c){c&&0===Object.keys(b).length?g.Ht(a):g.Ar(a,b)}; Tt=function(){return g.Ka("ytNetworklessLoggingInitializationOptions")?$t.isNwlInitialized:!1}; Goa=function(){return g.Ka("ytNetworklessLoggingInitializationOptions")?$t.potentialEsfErrorCounter:au}; g.cu=function(a){this.config_=null;a?this.config_=a:Xma()&&(this.config_=g.os())}; g.du=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.XN.bypassNetworkless?(f.method="POST",d.XN.writeThenSend?g.Q("use_new_nwl_wts")?Qt().writeThenSend(n,f):Doa(n,f):g.Q("use_new_nwl_saw")?Qt().sendAndWrite(n,f):Yt(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Ar(n,f))}catch(q){if("InvalidAccessError"==q.name)dr(Error("An extension is blocking network request."));else throw q;}} !g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&dr(new g.Cs("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Cs("innertube xhrclient not ready",b,c,d),g.br(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var k=a.config_.ZM;k&&(c=k);k=fna(a.config_.bN||!1,c,d);Object.assign(f.headers,k);(k=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.TF&&k;m=m&&k.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=jr(""+c+b,l);g.Q("use_new_nwl")&&Qt().ze||!g.Q("use_new_nwl")&& Tt()?Nna().then(function(p){e(p)}):e(!1)}; Hoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=eu+"VisibilityState";if(b in a)return a[b]}; fu=function(a,b){var c;Sm(a,function(d){c=b[d];return!!c}); return c}; gu=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Ioa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}}; Joa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.u=a.clientY+b}}; Koa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return $f(hu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,k=g.Pa(e[4])&&g.Pa(d)&&g.fg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||k)})}; g.iu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Koa(a,b,c,d);if(e)return e;e=++Loa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var k=f?function(l){l=new gu(l);if(!gi(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new gu(l); l.currentTarget=a;return c.call(a,l)}; k=cr(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Moa()||"boolean"===typeof d?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);hu[e]=[a,b,c,k,d];return e}; Noa=function(a,b){var c=document.body||document;return g.iu(c,"click",function(d){var e=gi(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.ju=function(a){a&&("string"==typeof a&&(a=[a]),g.tc(a,function(b){if(b in hu){var c=hu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Moa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete hu[b]}}))}; g.ku=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}; lu=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:g.ku(a)}; mu=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b}; nu=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));return new g.Bh(b,c)}; g.ou=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}; g.pu=function(a){a=a||window.event;return!1===a.returnValue||a.gN&&a.gN()}; g.qu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which}; Ooa=function(a){return Noa(a,function(b){return g.up(b,"ytp-ad-has-logging-urls")})}; g.Poa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.iu(a,b,function(){g.ju(e);c.apply(a,arguments)},d)}; ru=function(a){for(var b in hu)hu[b][0]==a&&g.ju(b)}; tu=function(a){this.K=a;this.j=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.ma=g.iu(window,"mousemove",(0,g.Sa)(this.X,this));this.N=g.sr((0,g.Sa)(this.Z,this),25)}; Qoa=function(){var a={},b=void 0===a.uZ?!1:a.uZ;a=void 0===a.rU?!0:a.rU;if(null==g.Ka("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Ja("_lact",c,window);g.Ja("_fact",c,window);-1==c&&uu();g.iu(document,"keydown",uu);g.iu(document,"keyup",uu);g.iu(document,"mousedown",uu);g.iu(document,"mouseup",uu);b?g.iu(window,"touchmove",function(){vu("touchmove",200)},{passive:!0}):(g.iu(window,"resize",function(){vu("resize",200)}),a&&g.iu(window,"scroll",function(){vu("scroll", 200)})); new tu(function(){vu("mouse",100)}); g.iu(document,"touchstart",uu,{passive:!0});g.iu(document,"touchend",uu,{passive:!0})}}; vu=function(a,b){wu[a]||(wu[a]=!0,g.kp.dg(function(){uu();wu[a]=!1},b))}; uu=function(){null==g.Ka("_lact",window)&&(Qoa(),g.Ka("_lact",window));var a=Date.now();g.Ja("_lact",a,window);-1==g.Ka("_fact",window)&&g.Ja("_fact",a,window);(a=g.Ka("ytglobal.ytUtilActivityCallback_"))&&a()}; xu=function(){var a=g.Ka("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b}; g.Cu=function(a,b,c){var d=g.yu();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var k=function(){zu[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.Au[a]?k():g.rr(k,0)}catch(l){g.br(l)}},c); zu[e]=!0;Bu[a]||(Bu[a]=[]);Bu[a].push(e);return e}return 0}; g.Du=function(a){var b=g.yu();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.tc(a,function(c){b.unsubscribeByKey(c);delete zu[c]}))}; g.Eu=function(a,b){var c=g.yu();return c?c.publish.apply(c,arguments):!1}; Soa=function(a){var b=g.yu();if(b)if(b.clear(a),a)Roa(a);else for(var c in Bu)Roa(c)}; g.yu=function(){return g.C.ytPubsubPubsubInstance}; Roa=function(a){Bu[a]&&(a=Bu[a],g.tc(a,function(b){zu[b]&&delete zu[b]}),a.length=0)}; Toa=function(){this.B=this.j=this.u=0}; Voa=function(a,b){if("log_event"===a.endpoint){var c=Fu(a),d=Gu.get(c)||[];Gu.set(c,d);d.push(a.payload);Uoa(b,d,c)}}; Woa=function(a,b){if("log_event"===a.endpoint){var c=Fu(a,!0),d=Hu.get(c)||[];Hu.set(c,d);a=Ge(a.payload);d.push(a);Uoa(b,d,c,!0)}}; Uoa=function(a,b,c,d){d=void 0===d?!1:d;a&&(Iu=new a);a=g.Yq("tvhtml5_logging_max_batch")||g.Yq("web_logging_max_batch")||100;var e=(0,g.R)(),f=d?Ju.B:Ku.B;b.length>=a?Lu({writeThenSend:!0},g.Q("flush_only_full_queue")?c:void 0,d):10<=e-f&&(Xoa(d),d?Ju.B=e:Ku.B=e)}; Yoa=function(a,b){if("log_event"===a.endpoint){var c=Fu(a),d=new Map;d.set(c,[a.payload]);b&&(Iu=new b);return new g.ri(function(e){Iu&&Iu.isReady()?Mu(d,e,{bypassNetworkless:!0},!0):e()})}}; Zoa=function(a,b){if("log_event"===a.endpoint){var c=Fu(a,!0),d=new Map;d.set(c,[Ge(a.payload)]);b&&(Iu=new b);return new g.ri(function(e){Iu&&Iu.isReady()?Nu(d,e,{bypassNetworkless:!0},!0):e()})}}; Fu=function(a,b){var c="";if(a.pw)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Nq;c.videoId?d.setVideoId(c.videoId):c.playlistId&&g.se(d,2,Ou,c.playlistId);Pu[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Qu[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; Lu=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.ri(function(d){c?(g.tr(Ju.u),g.tr(Ju.j),Ju.j=0):(g.tr(Ku.u),g.tr(Ku.j),Ku.j=0);if(Iu&&Iu.isReady())if(void 0!==b)if(c){var e=new Map,f=Hu.get(b)||[];e.set(b,f);Nu(e,d,a);Hu.delete(b)}else e=new Map,f=Gu.get(b)||[],e.set(b,f),Mu(e,d,a),Gu.delete(b);else c?(Nu(Hu,d,a),Hu.clear()):(Mu(Gu,d,a),Gu.clear());else Xoa(c),d()})}; Xoa=function(a){a=void 0===a?!1:a;if(g.Q("web_gel_timeout_cap")&&(!a&&!Ku.j||a&&!Ju.j)){var b=g.rr(function(){Lu({writeThenSend:!0},void 0,a)},6E4); a?Ju.j=b:Ku.j=b}g.tr(a?Ju.u:Ku.u);b=g.P("LOGGING_BATCH_TIMEOUT",g.Yq("web_gel_debounce_ms",1E4));g.Q("shorten_initial_gel_batch_timeout")&&Ru&&(b=$oa);b=g.rr(function(){Lu({writeThenSend:!0},void 0,a)},b); a?Ju.u=b:Ku.u=b}; Mu=function(a,b,c,d){var e=Iu;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.hg({context:g.ps(e.config_||g.os())});m.events=n;(n=Qu[l])&&apa(m,l,n);delete Qu[l];l="visitorOnlyApprovedKey"===l;bpa(m,f,l);cpa(c);g.du(e,"log_event",m,dpa(c,l,function(){k--;k||b()},function(){k--; k||b()},d)); Ru=!1}}; Nu=function(a,b,c,d){var e=Iu;c=void 0===c?{}:c;var f=Math.round((0,g.R)()),k=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=new Oq;var p=cna(e.config_||g.os());xe(m,1,p);n=epa(n);for(p=0;pipa&&(a=1);Uq("BATCH_CLIENT_COUNTER",a);return a}; apa=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]}; fpa=function(a,b,c){if(c.Fg())var d=1;else if(c.getPlaylistId())d=2;else return;xe(a,4,c);a=a.getContext()||new vq;c=ve(a,uq,3)||new uq;var e=new tq;e.setToken(b);g.D(e,1,d);Be(c,12,tq,e);xe(a,3,c)}; epa=function(a){for(var b=[],c=0;c>3;switch(e&7){case 0:e=Jv(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Jv(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}; Qpa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(jqa,""),c=c.replace(kqa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else lqa(a,b,c)}; lqa=function(a,b,c){c=void 0===c?null:c;var d=mqa(a),e=document.getElementById(d),f=e&&qpa(e),k=e&&!f;f?b&&b():(b&&(f=g.Cu(d,b),b=""+g.Ra(b),nqa[b]=f),k||(e=oqa(a,d,function(){qpa(e)||(ppa(e,"loaded","true"),g.Eu(d),g.rr(g.Ta(Soa,d),0))},c)))}; oqa=function(a,b,c,d){d=void 0===d?null:d;var e=g.Yh("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);g.Tj(e,g.Hp(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; mqa=function(a){var b=document.createElement("a");g.uh(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Kh(a)}; gw=function(a){var b=g.Da.apply(1,arguments);if(!ew(a)||b.some(function(e){return!ew(e)}))throw Error("Only objects may be merged."); var c=a;b=g.r(b);for(var d=b.next();!d.done;d=b.next())fw(c,d.value);return c}; fw=function(a,b){for(var c in b)if(ew(b[c])){if(c in a&&!ew(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});fw(a[c],b[c])}else if(hw(b[c])){if(c in a&&!hw(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);pqa(a[c],b[c])}else a[c]=b[c];return a}; pqa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ew(c)?a.push(fw({},c)):hw(c)?a.push(pqa([],c)):a.push(c);return a}; ew=function(a){return"object"===typeof a&&!Array.isArray(a)}; hw=function(a){return"object"===typeof a&&Array.isArray(a)}; iw=function(a,b,c,d,e,f){g.G.call(this);this.j=a;this.u=c;this.B=d;this.D=e;this.C=f}; sqa=function(a,b,c){c.Gu?(jw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),qqa(a.D,b)):rqa(a.C,c.im,b.slotId)}; uqa=function(a,b,c,d){var e=kw(a.B.get(),1);jw(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return tqa(a.u.get(),c,d,e.clientPlaybackNonce,e.EL,e.daiEnabled,e)},b)}; mw=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!lw(a.Ea,c.value))return!1;return!0}; nw=function(a,b){this.zp=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)}; wqa=function(a){vqa=void 0===a?!1:a}; T=function(a,b,c,d,e){d=void 0===d?{}:d;vqa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.Cs(a);if(a.args)for(var f=g.r(a.args),k=f.next();!k.done;k=f.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Mv(a)}}; ow=function(a,b,c,d,e,f,k){g.G.call(this);this.B=a;this.u=b;this.ZD=c;this.Ka=d;this.C=e;this.j=f;this.Ga=k}; pw=function(){this.u=new Map;this.j=new Map;this.B=new Map}; qw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.nv(16)}; rw=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.nv(16)}; tw=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.nv(16)}; uw=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.Hu=f}; xqa=function(a,b,c,d){this.B=a;this.Jd=null;this.u=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d}; vw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Mv(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; ww=function(a,b){return b&&b.test(a)?!0:!1}; xw=function(a){var b=yqa&&yqa.exec(a);return b?b[0]:g.Q("allow_music_base_url")&&(a=zqa&&zqa.exec(a))?a[0]:""}; Bqa=function(a){var b=void 0===b?!1:b;return vw(ww(a,Aqa),a,b,"Nielsen OCR URL")}; Dqa=function(a){var b=void 0===b?!1:b;return vw(ww(a,Cqa),a,b,"Active View 3rd Party Integration URL")}; Fqa=function(a){var b=void 0===b?!1:b;return vw(ww(a,Eqa),a,b,"Google/YouTube Brand Lift URL")}; yw=function(a){var b=void 0===b?!1:b;return vw(ww(a,Gqa),a,b,"Trusted Stream URL")}; g.zw=function(a){var b=void 0===b?!1:b;return vw(ww(a,Hqa),a,b,"Trusted Image URL")}; Jqa=function(a){var b=void 0===b?!1:b;return vw(ww(a,Iqa),a,b,"Trusted Promoted Video Domain URL")}; Lqa=function(a){var b=void 0===b?!1:b;return vw(ww(a,Kqa),a,b,"Drm Licensor URL")}; Nqa=function(a,b){b=void 0===b?!1:b;return vw(ww(a,Mqa),a,b,"Captions URL")}; Oqa=function(a){a=new g.sk(a);g.tk(a,document.location.protocol);g.uk(a,document.location.hostname);document.location.port&&g.vk(a,document.location.port);return a.toString()}; Aw=function(a){a=new g.sk(a);g.tk(a,document.location.protocol);return a.toString()}; g.Cw=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Pqa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||Bw.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Ll(d.thumbnails,function(e){return g.zw(e.url)})}):null; this.visible=this.visible;this.style=this.style;this.start=this.start}; Qqa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; Rqa=function(a,b){switch(a.style){case Bw.CHAPTER_MARKER:return b?8:5;case Bw.AD_MARKER:return 6;case Bw.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; g.Dw=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u}; g.Ew=function(a){return"crn_"+a}; g.Fw=function(a){return"crx_"+a}; Gw=function(a,b,c,d,e){g.Cw.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; Hw=function(a){return"AD_PLACEMENT_KIND_START"==a.j}; Sqa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j}; Tqa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new Np(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new Np(Math.max(0,b.B-b.j),0x7ffffffffffff):new Np(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new Np(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= b.Jd;a=1E3*d.startSecs;if(c){if(a1E5*Math.random()&&(c=new g.Cs("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Mv(c)),!0):!1}; dx=function(a){Yqa(a);lra();a||(g.P("TIMING_ACTION")&&Uq("PREVIOUS_ACTION",g.P("TIMING_ACTION")),Uq("TIMING_ACTION",""))}; hx=function(a,b,c){b=void 0===b?{}:b;c=c?c:a;ex(c);Yw(c);dx(c);Rw(c).useGel=!0;Xw(c||"").info.actionType=a;b.cttAuthInfo&&(Rw(c).cttAuthInfo=b.cttAuthInfo);Uq(c+"TIMING_ACTION",a);fx("_start",b.startTime,c);a={actionType:Zw(a)};(b=g.Fv())&&"UNDEFINED_CSN"!==b&&(a.clientScreenNonce=b);gx(a,c);Qw(!0,c)}; g.ix=function(a,b,c,d){null!==b&&(Sw(c)[a]=b,(a=kra(a,b,c))&&gx(a,c,d))}; gx=function(a,b,c){if(!g.Q("web_csi_via_jspb")||(void 0===c?0:c))c=Xw(b||""),gw(c.info,a),gw(Uw(b),a),c=Vw(b),b=Rw(b).cttAuthInfo,ax().info(a,c,b);else{c=new Iq;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=Pw()&&0c.duration?d:c},{duration:0}))&&0Ema()?!1:!("function"!==typeof window.fetch||!window.ReadableStream)}; Ax=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; g.Bx=function(a,b){this.id=a;this.Ec=b;this.captionTracks=[];this.j=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; Cx=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0}; g.Ex=function(a,b,c,d){return new Cx(g.Dx[a]||0,g.Dx[b]||0,c,d)}; Fx=function(a){var b=g.Dx.auto;return a.u===b&&a.j===b}; Hx=function(a){return Gx[a.j||a.u]||"auto"}; ura=function(a,b){b=g.Dx[b];return a.u<=b&&(!a.j||a.j>=b)}; Ix=function(a,b){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;b=g.r(this.j);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Ec&&!a.has(c.Ec.id)){var d=new g.Bx(c.id,c.Ec);a.add(c.Ec.id);this.audioTracks.push(d)}}}; yra=function(a,b,c,d,e){var f={},k=new Set,l={};if(Jx(c)){for(var m in c.j)c.j.hasOwnProperty(m)&&(a=c.j[m],l[a.info.j]=[a.info]);return l}for(var n in c.j)if(c.j.hasOwnProperty(n)){m=c.j[n];var p=m.info.Yb(),q=Kx(a,m.info,b,c.isLive,k);!0!==q?f[p]=q:(l[m.info.j]=l[m.info.j]||[],l[m.info.j].push(m.info))}e&&(d(f),d({bfflt:Lx(l)}));for(var t in l)l.hasOwnProperty(t)&&(c=t,l[c]&&l[c][0].isVideo()&&(l[c]=vra(a,l[c]),l[c]=wra(l[c])));c=g.r(k.values());for(k=c.next();!k.done;k=c.next())(k=b.u.get(k.value))&& --k.FP;b=g.Nf(l,function(w){return!!w.length}); e&&d({aftflt:Lx(l)});a.gb=xra(b,a);return b}; Kx=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?new Set:e;if(""===b.j)return"unkn";if(("304"===b.Yb()||"266"===b.Yb())&&a.Va)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.N&&b.video&&b.video.jm&&(q=d));"9"===q&&l.h&&(d=Rx(l["9"]),Rx(l.h)>1.5*d&&(q="h"));a.ib&&c.isLive&&"("===q&&l.H&&1440>Rx(l["("])&&(q="H");k&&e({vfmly:Ox(q)});a=l[q];if(!a.length)return k&&e({novfmly:Ox(q)}),Fr();Qx(a, b);return Gr(new Ix(a,b))}; Qx=function(a,b,c){c=void 0===c?[]:c;g.qc(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0b&&(a=g.Bn(a,function(c){return 32a.getLastSegmentNumber())a.segments=[];else{var c=Yb(a.segments,function(d){return d.Ma>=b},a); 0c&&(c=a.totalLength-b);a.focus(b);if(!gy(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,k=d;k<=a.u;k++)e.set(a.j[k],f),f+=a.j[k].length;a.j.splice(d,a.u-d+1,e);fy(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; hy=function(a,b,c){a=Qra(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; Rra=function(a){a=hy(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce&&bf)ny[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;ny[e++]=55296|f>>10;f=56320|f&1023}ny[e++]=f}}f=String.fromCharCode.apply(String,ny); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; qy=function(a,b){var c;if(null==(c=py)?0:c.encodeInto)return b=py.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; ry=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j}; sy=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; ty=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; uy=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; vy=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; wy=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b}; yy=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;ca.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.u.byteLength}; Ty=function(a,b,c){var d=new Ny(c);if(!Py(d,a))return!1;d=Qy(d);if(!Ry(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.j;var e=Sy(d,!0);d=a+(d.start+d.j-b)+e;d=9b;b++)c=256*c+Yy(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+Yy(a),d*=128;return b?c-d:c}; Vy=function(a){var b=Sy(a,!0);a.j+=b}; jsa=function(a){if(!Ry(a,440786851,!0))return null;var b=a.j;Sy(a,!1);var c=Sy(a,!0)+a.j-b;a.j=b+c;if(!Ry(a,408125543,!1))return null;Sy(a,!0);if(!Ry(a,357149030,!0))return null;var d=a.j;Sy(a,!1);var e=Sy(a,!0)+a.j-d;a.j=d+e;if(!Ry(a,374648427,!0))return null;var f=a.j;Sy(a,!1);var k=Sy(a,!0)+a.j-f,l=new Uint8Array(c+12+e+k),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer, a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,k),c+12+e);return l}; Zy=function(a){var b=a.j;a.j=0;var c=1E6;Py(a,[408125543,357149030,2807729])&&(c=Uy(a));a.j=b;return c}; ksa=function(a,b){var c=a.j;a.j=0;if(160!==a.u.getUint8(a.j)&&!$y(a)||!Ry(a,160))return a.j=c,NaN;Sy(a,!0);var d=a.j;if(!Ry(a,161))return a.j=c,NaN;Sy(a,!0);Yy(a);var e=Yy(a)<<8|Yy(a);a.j=d;if(!Ry(a,155))return a.j=c,NaN;d=Uy(a);a.j=c;return(e+d)*b/1E9}; $y=function(a){if(!lsa(a)||!Ry(a,524531317))return!1;Sy(a,!0);return!0}; lsa=function(a){if(a.hx()){if(!Ry(a,408125543))return!1;Sy(a,!0)}return!0}; Py=function(a,b){for(var c=0;cb.Qf?1E3*Math.pow(b.fh,c-b.Qf):0;return 0===b?!0:a.K+b<(0,g.R)()}; gz=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.J=!1;this.C=null;this.N=0;this.D=this.B=null;this.info=b;this.u=new rsa(a)}; hz=function(a,b,c,d){var e=g.r(a.info.id.split(";")),f=e.next().value;e=e.next().value;return(d?(c||"")+";":"")+f+";"+(b?0:a.info.lastModified)+";"+(void 0===e?"":e)}; iz=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; jz=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new iz(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0=b.range.start+b.zb&&a.range.start+a.zb+a.u<=b.range.start+b.zb+b.u:a.Ma===b.Ma&&a.zb>=b.zb&&(a.zb+a.u<=b.zb+b.u||b.Zd)}; Asa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.df()?(a=a.j.pu(a),Sm(a,function(c){return Asa(c,b)})):a.Ma===b.Ma&&!!b.u&&b.zb+b.u>a.zb&&b.zb+b.u<=a.zb+a.u}; Bsa=function(a,b){var c=b.j;a.D="updateWithEmsg";a.Ma=c;b.u&&(nz?a.X=b.u:a.N=b.u)}; uz=function(a,b){var c=b.Ma;a.D="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,vsa(a)}; vz=function(a,b){this.j=a;this.B=null;this.D=this.Ye=NaN;this.J=this.requestId=null;this.u=a[0].j.u;this.C=b||"";this.range=this.j[0].range&&0=k)if(k=b.shift(),f=(f=l.exec(k))?+f[1]/1E3:0)k=(k=m.exec(k))?+k[1]:0,k+=1;else return;c.push(new ay(n,e,f,NaN,"sq/"+(n+1)));e+=f;k--}a.index.append(c)}}; Iz=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.j=new Float64Array(128)}; Jz=function(a){a.offsets.lengthe)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.j+d,b&255),b>>>=8;c.j=a;b=!0}else b=!1;return b}; Nz=function(a,b){b=void 0===b?!1:b;var c=Xsa(a);a=b?0:a.info.J;return c||a}; Xsa=function(a){g.Mz(a.info.j.info)||a.info.j.info.Ce();if(a.u&&6===a.info.type)return a.u.mj;if(g.Mz(a.info.j.info)){var b=Lz(a);var c=0;b=g.My(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=bsa(d.value),c+=d.kI[0]/d.pI;c=c||NaN;if(!(0<=c))a:{c=Lz(a);b=a.info.j.j;for(var e=d=0,f=0;Hy(c,d);){var k=Iy(c,d);if(1836476516===k.type)e=g.Ey(k);else if(1836019558===k.type){!e&&b&&(e=Fy(b));if(!e){c=NaN;break a}var l=Gy(k.data,k.dataOffset,1953653094),m=e,n=Gy(l.data,l.dataOffset,1952868452); l=Gy(l.data,l.dataOffset,1953658222);var p=uy(n);uy(n);p&2&&uy(n);n=p&8?uy(n):0;var q=uy(l),t=q&1;p=q&4;var w=q&256,x=q&512,y=q&1024;q&=2048;var z=vy(l);t&&uy(l);p&&uy(l);for(var E=t=0;E=c+d)break}e.length||g.S(new g.Cs("b189619593",""+b,""+c,""+d));return new vz(e)}; Qz=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""}; ata=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; Sz=function(a,b,c,d,e,f,k,l,m){this.width=a;this.height=b;this.quality=f||Rz(a,b);this.j=g.Dx[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=k)||(a=g.Dx[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; Wz=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; nA=function(a,b){return 0<=mA(a,b)}; fta=function(a,b){if(!a)return NaN;b=mA(a,b);return 0<=b?a.start(b):NaN}; oA=function(a,b){if(!a)return NaN;b=mA(a,b);return 0<=b?a.end(b):NaN}; pA=function(a){return a&&a.length?a.end(a.length-1):NaN}; gta=function(a,b){a=oA(a,b);return 0<=a?a-b:0}; qA=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return kA(d,e)}; rA=function(a,b,c,d){g.cv.call(this);var e=this;this.Hd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.LM={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}}; g.dv(this.Hd,this.LM);this.Ty=this.isActive}; sA=function(a,b,c,d,e){g.cv.call(this);var f=this;this.hc=a;this.We=b;this.id=c;this.containerType=d;this.isVideo=e;this.rN=this.ZA=this.Te=null;this.appendWindowStart=this.timestampOffset=0;this.nL=kA([],[]);this.Iz=!1;this.py=hta?[]:void 0;this.Lc=function(l){return f.ea(l.type,f)}; var k;if(null==(k=this.hc)?0:k.addEventListener)this.hc.addEventListener("updateend",this.Lc),this.hc.addEventListener("error",this.Lc)}; tA=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; uA=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1}; vA=function(a,b,c){c=void 0===c?!1:c;g.G.call(this);this.mediaSource=a;this.We=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.cA(this);g.H(this,this.events);this.vx=new uA(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.We.webkitMediaSourceURL,!0);a=this.mediaSource||this.We;av(this.events,a,["sourceopen","webkitsourceopen"],this.IY);av(this.events,a,["sourceclose","webkitsourceclose"],this.HY)}; ita=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; jta=function(a,b){wA(a)?g.oi(function(){b(a)}):a.callback=b}; wA=function(a){try{return"open"===xA(a)}catch(b){return!1}}; xA=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.We.webkitSourceState){case a.We.SOURCE_OPEN:return"open";case a.We.SOURCE_ENDED:return"ended";default:return"closed"}}; yA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; kta=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Hd:a.j,f=a.u.isView()?a.u.Hd:a.u,k=new vA(a.mediaSource,a.We,!0);k.vx=a.vx;e=new rA(e,b,c,d);b=new rA(f,b,c,d);k.j=e;k.u=b;g.H(k,e);g.H(k,b);wA(a)||a.j.iC(a.j.pd());return k}; lta=function(a,b){return zA(function(c,d){return g.Dr(c,d,4,1E3)},a,b)}; g.mta=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=my(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.X&&a.isLivePlayback;a.Ha=Number(Az(c,EA(a,"earliestMediaSequence")))||0;if(d=Date.parse(Hsa(Az(c,EA(a,"mpdResponseTime")))))a.ra=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Ll(c.getElementsByTagName("Period"),a.nZ,a);a.state=2;a.ea("loaded");Dta(a)}return a}).Bh(function(c){if(c instanceof Br){var d=c.xhr; a.ma=d.status}a.state=3;a.ea("loaderror");return ui(d)})}; Fta=function(a,b,c){return Eta(new AA(a,b,c),a)}; FA=function(a){return a.isLive&&(0,g.R)()-a.xa>=a.X}; Dta=function(a){var b=a.X;isFinite(b)&&(FA(a)?a.refresh():(b=Math.max(0,a.xa+b-(0,g.R)()),a.B||(a.B=new g.L(a.refresh,b,a),g.H(a,a.B)),a.B.start(b)))}; Gta=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; GA=function(a){return a.C?a.C-(a.K||a.timestampOffset):0}; HA=function(a){return a.D?a.D-(a.K||a.timestampOffset):0}; IA=function(a){if(!isNaN(a.va))return a.va;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ra&&(a.va=b);return b}if(a.isLive&&(d=b[c],d.mj))return d.mj}return NaN}; Hta=function(a,b){a=ag(a.j,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c(0,g.R)()-1E3*a))return 0;a=g.aw("yt-player-quality");if("string"===typeof a){if(a=g.Dx[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Fma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(k){return Zz(k)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1; c=c.videoInfos[0].video;e=Math.min(NA("1",c.fps),NA("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=NA("1",30),b.perfCap30=c,a=Math.min(a,c),c=NA("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; QA=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.j={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.N=!!d&&d.kb("edge_nonprefixed_eme");this.D=d?g.PA(d,"html5_hdcp_probing_stream_url"):""}; SA=function(a){return a.N?!1:!a.keySystemAccess&&!!RA()&&"com.microsoft.playready"===a.keySystem}; TA=function(a){return"com.microsoft.playready"===a.keySystem}; UA=function(a){return!a.keySystemAccess&&!!RA()&&"com.apple.fps.1_0"===a.keySystem}; VA=function(a){return"com.youtube.fairplay"===a.keySystem}; g.WA=function(a){return"fairplay"===a.flavor}; RA=function(){var a=window,b=a.MSMediaKeys;Xr()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; YA=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.gA&&!g.Ur())return Pp("45");if(g.ht||g.Mc)return a.kb("edge_nonprefixed_eme");if(g.yx)return Pp("47");if(g.Ks){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.XA(a,"html5_safari_desktop_eme_min_version"))return Pp(a)}return!0}; Yta=function(a,b,c,d){var e=Vr(),f=(c=e||c&&Xr())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.u(f),g.u(ZA.playready)):[].concat(g.u(ZA.playready),g.u(f))}; $A=function(a,b,c,d,e){d=void 0===d?!1:d;g.G.call(this);this.experiments=b;this.useCobaltWidevine=d;this.ya=e;this.j=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.Qa()}; $ta=function(a,b){a.callback=b;a.B=[];YA(a.experiments)?aB(a):Zta(a)}; aB=function(a){if(!a.isDisposed())if(0===a.j.length)a.callback(a.B);else{var b=a.j[0],c=a.u[b],d=aua(a,c);a.Qa();navigator.requestMediaKeySystemAccess(b,d).then(cr(function(e){if(!a.isDisposed()){a.Qa();c.keySystemAccess=e;if(TA(c)){e=dA();for(var f=g.r(Object.keys(a.C[c.flavor])),k=f.next();!k.done;k=f.next())k=k.value,c.j[k]=!!e.canPlayType(k)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),k=f.next();!k.done;k=f.next())bua(a,c,k.value);if(e.videoCapabilities)for(e= g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())bua(a,c,f.value)}a.B.push(c);a.useCobaltWidevine?(a.j.shift(),aB(a)):a.callback(a.B)}}),cr(function(){a.Qa(); a.D=!a.D&&"widevine"===a.u[a.j[0]].flavor;a.D||a.j.shift();aB(a)}))}}; bua=function(a,b,c){a.S("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; aua=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};TA(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),k=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?k.push({contentType:e}):f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.gA&&Sr("windows nt")&&!a.S("html5_drm_enable_moho")||k.push({contentType:e,robustness:"HW_SECURE_ALL"}), f=e,a.S("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),k.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.S("html5_query_sw_secure_crypto_for_android")&&(cs()||Tr())&&(a.ya("swcrypto",{}),k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; Zta=function(a){if(RA()&&g.Ks)a.Qa(),a.B.push(new QA("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=cua(),c=g.Zb(a.j,function(d){var e=a.u[d],f=!1,k=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),k=k||0===l.indexOf("video/"));return f&&k}); c?(a.Qa(),a.B.push(a.u[c])):a.Qa();a.j=[]}a.callback(a.B)}; cua=function(){var a=RA();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=dA(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; dua=function(){this.j=0}; eua=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=er(b||"","&");a={};b=g.r(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.XA=function(a,b){return Number(a.flags[b])||0}; g.PA=function(a,b){return(a=a.flags[b])?a.toString():""}; bB=function(a,b,c){this.experiments=a;this.ma=b;this.ra=void 0===c?!1:c;this.K=!!g.Ka("cast.receiver.platform.canDisplayType");this.J={};this.X=!1;this.u=new Map;this.N=!0;this.D=!this.experiments.kb("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.kb("html5_disable_vp9_encrypted");a=g.Ka("cast.receiver.platform.getValue");this.C=!this.K&&a&&a("max-video-resolution-vpx")||null}; zra=function(a,b,c){c=void 0===c?1:c;var d=b.Yb();if("0"===d)return!0;var e=b.mimeType;if(b.Ce()&&Vr()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(Zz(b)&&a.X)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(Mx(a,Nx.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24Number(d.get("dhmu",e.toString())));this.Mk=e;this.ra=jA();this.cm=g.jC;this.tj=$B(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.eg=!(!b||!b.embedsEnablePfpImaIntegration||this.S("embeds_pfp_ima_integration_killswitch")); this.ma=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.S("embeds_web_enable_utm_params"));this.pfpChazalUi=this.eg||$B(!1,(b?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.S("embeds_pfp_chazal_ui_killswitch"));var k;b?void 0!==b.hideInfo&&(k=!b.hideInfo):k=a.showinfo;this.Ak=g.kC(this)&&!this.tj||$B(!lC(this)&&!mC(this)&&!this.D,k);this.xk=b?!!b.mobileIphoneSupportsInlinePlayback:$B(!1,a.playsinline);k=this.isMobile&&nC&&null!=oC&&0=oC;e=b?b.useNativeControls:a.use_native_controls;this.J=g.kC(this)&& this.isMobile;d=this.isMobile&&!this.J;e=pC(this)||!k&&$B(d,e)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?e:"0";this.le=this.isMobile;this.color=aC("red",b?b.progressBarColor:a.color,Oua);this.Yl="3"===this.controlsType||$B(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Cb=!this.j;this.wj=(e=!this.Cb&&!mC(this)&&!this.N&&!this.D&&!lC(this))&&!this.Yl&&"1"===this.controlsType;this.Qb=g.qC(this)&&e&&"0"===this.controlsType&&!this.wj;this.hm=this.Zl= k;this.Fb=("3"===this.controlsType||this.isMobile||$B(!1,a.use_media_volume))&&!this.J;this.yj=rC&&!g.Cc(601)?!1:!0;this.Lk=this.j||!1;this.kd=mC(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=cC("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.B||$B(!0,l);k=!0;b&&b.disableMdxCast&&(k=!1);this.ib=this.S("enable_cast_for_web_unplugged")&&g.sC(this)&&k||this.S("enable_cast_on_music_web")&&g.tC(this)&&k||l&& k&&"1"===this.controlsType&&!this.isMobile&&(mC(this)||g.qC(this)||g.uC(this))&&!g.vC(this);this.gm=hA()||iA();l=b?!!b.supportsAutoplayOverride:$B(!1,a.autoplayoverride);this.Qh=!this.isMobile&&!Sr("nintendo wiiu")&&!Sr("nintendo 3ds")||l;l=b?!!b.enableMutedAutoplay:$B(!1,a.mutedautoplay);k=this.S("embeds_enable_muted_autoplay")&&g.kC(this);this.Td=l&&k&&this.ra&&!pC(this);l=(mC(this)||lC(this))&&"blazer"===this.playerStyle;this.ah=b?!!b.disableFullscreen:!$B(!0,a.fs);this.Wa=!this.ah&&(l||g.Wu()); this.ej=this.S("uniplayer_block_pip")&&(Tr()&&Pp(58)&&!cs()||$r);l=g.kC(this)&&!this.tj;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Kb=l||$B(!this.D,m);this.zk=$B(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.K=cs()&&0=oC?"_top":"_blank";this.Pd=g.uC(this);this.lh=$B("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "books":m="gb";break;case "docs":m= "gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.xa=m;this.authUser=cC("",b?b.authorizedUserIndex:a.authuser);this.Zc=g.kC(this)&&(this.Pa||this.S("embeds_web_enable_hiding_login_buttons")&&(!Bma()||cs()||as())||this.S("embeds_web_enable_always_hiding_login_buttons"));var n;b?void 0!==b.disableWatchLater&& (n=!b.disableWatchLater):n=a.showwatchlater;this.Ck=((m=!this.Zc)||!!this.authUser&&m)&&$B(!this.N,this.B?n:void 0);this.ag=b?b.isMobileDevice||!!b.disableKeyboardControls:$B(!1,a.disablekb);this.loop=$B(!1,a.loop);this.pageId=cC("",!this.S("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.fm=$B(!0,a.canplaylive);this.ob=$B(!1,a.livemonitor);this.disableSharing=$B(this.D,b?b.disableSharing:a.ss);(n=b&&this.S("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride: a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.Dh(n,m))):n=null;this.zj=n;this.mute=b?!!b.startMuted:$B(!1,a.mute);this.storeUserVolume=!this.mute&&$B("0"!==this.controlsType,b&&!this.S("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:aC(void 0,n,wC);this.captionsLanguagePreference= b?b.captionsLanguagePreference||"":cC("",a.cc_lang_pref);n=aC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,wC);"3"===this.controlsType&&2===n&&(n=3);this.Va=n;this.qf=b?b.hl||"en_US":cC("en_US",a.hl);this.region=b?b.contentRegion||"US":cC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":cC("en",a.host_language);this.Dk=!this.Pa&&Math.random()Math.random();this.fh=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Aua(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig): void 0;this.isTectonic=b&&!this.S("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.Oc=new Hua;g.H(this,this.Oc);this.nj=$B(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.Pk=g.P("LOGGED_IN",!1);this.Qf=(null==b?void 0:b.allowWoffleManagement)||!1;this.embedsRct=cC("",b?b.embedsRct:a.rct);this.cj=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.S("html5_high_res_logging")?this.X=2: 1>4096*Math.random()&&(this.X=1);this.S("html5_ping_queue")&&(this.jh=new uB)}; yC=function(a,b,c){c=void 0===c?!1:c;a.Wb=cC(a.Wb,b.video_id);a.Ia=cC(a.Ia,b.eventid);a.Ia&&(lv=a.Ia);for(var d=[],e=g.r(Object.keys(Tua)),f=e.next();!f.done;f=e.next()){f=Tua[f.value];var k=b[f];null!=k&&(k!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=k)}!c&&0x.width*x.height*x.fps)x=I}else t.push(I)}else l[E]="disdrmhfr";w.reduce(function(aa, K){return K.zf().isEncrypted()&&aa},!0)&&(q=p); e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.S("html5_native_audio_track_switching");w.push(hva(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));Object.entries(l).length&&k(l);return bD(a.u,w,EC(a,b))}; hva=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){for(var x=0,y="",z=g.r(a),E=z.next();!E.done;E=z.next())E=E.value,y||(y=E.itag),E.audioChannels&&E.audioChannels>x&&(x=E.audioChannels,y=E.itag);e=new Wz(e,"application/x-mpegURL",{audio:new Qz(0,x,null,y),video:new Sz(f,k,l,null,void 0,n,void 0,t),Rd:q});a=new Yua(a,b,c?[c]:[],d,!!w);a.C=p?p:1369843;return new dD(e,a,m)}; eva=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN}; gva=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Rd===b.Rd&&!e.audioChannels)return d}return""}; fva=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; eD=function(a,b){this.j=a;this.u=b}; jva=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var k=f.value;if(k.url){f=new g.Tx(k.url,!0);if(k.s){var l=k.sp,m=Hra(decodeURIComponent(k.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);k=cta(k.type,k.quality,k.itag,k.width,k.height);e.push(new eD(k,f))}}return bD(a.u,e,EC(a,b))}; fD=function(a,b){this.j=a;this.u=b}; kva=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=cta(e.type,"medium","0");d.push(new fD(f,e.url))}return bD(a.u,d,EC(a,b))}; gD=function(a,b){this.type=a||"";this.id=b||""}; g.hD=function(a){return new gD(a.substr(0,2),a.substr(2))}; iD=function(a,b){for(var c={},d=g.r(Object.keys(lva)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.zw(f)&&(c[lva[e]]=f)}return c}; jD=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); a.sort(function(l,m){return l.width-m.width||l.height-m.height}); for(var c=g.r(Object.keys(mva)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=mva[e];for(var f=g.r(a),k=f.next();!k.done;k=f.next())if(k=k.value,k.width>=e){e=nva(k.url);g.zw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=nva(a.url),g.zw(a)&&(b["maxresdefault.jpg"]=a));return b}; nva=function(a){return a.startsWith("//")?"https:"+a:a}; g.kD=function(a,b){this.u=a;this.author="";this.zw=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=er(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=iD(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new gD("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.hD(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; g.lD=function(a,b){this.j=a;this.In=this.author="";this.zw=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Nq=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.In=b.In||"";if(a=b.endscreen_autoplay_session_data)this.zw=er(a,"&");this.Aw=b.Aw;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText= b.lengthText||"";this.Nq=b.Nq||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=er(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=iD(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; pva=function(a,b){var c=g.Ka("ytDebugData.callbacks");c||(c={},g.Ja("ytDebugData.callbacks",c,void 0));if(g.Q("web_dd_iu")||ova.includes(a))c[a]=b}; mD=function(a){this.j=new Tp(a)}; qva=function(){try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.cq(g.Ds()+"::yt-player")))return new mD(a)}; rva=function(){var a=g.nD;if(void 0===oD)if(a){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}oD=qva()}else g.Mv(new g.Cs("b215858349 yt-player-lv used",a)),(a=qva())&&a.remove("yt-player-lv"),oD=g.cq();return oD}; g.pD=function(){var a=rva();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.sva=function(a){var b=rva();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.qD=function(a){return g.pD()[a]||0}; g.rD=function(a,b){var c=g.pD();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.sva(c))}; g.sD=function(a){return g.B(function(b){return b.return(g.et(tva(),a))})}; uD=function(a,b,c,d,e,f,k){var l,m,n,p,q,t,w;return g.B(function(x){switch(x.j){case 1:return l=g.qD(a),4===l?x.return(4):g.A(x,g.mt(),2);case 2:m=x.u;if(!m)throw g.Ms("wiac");if(!k||void 0===f){x.Ya(3);break}return g.A(x,uva(k,f),4);case 4:f=x.u;case 3:return n=c.lastModified||"0",vva("Writing data to iDB: "+a+" "+b.id+" "+n+" "+e+" "+(null==(p=f)?void 0:p.length)),g.A(x,g.sD(m),5);case 5:return q=x.u,g.va(x,6),tD++,g.A(x,g.Ws(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC", Jc:!0},function(y){if(void 0!==e&&void 0!==f){var z=""+a+"|"+b.id+"|"+n+"|"+String(e).padStart(10,"0");z=g.Xs(y.objectStore("media"),f,z)}else z=g.Os.resolve(void 0);var E=wva(a,b.isVideo()),I=wva(a,!b.isVideo()),J={fmts:xva(d),format:c||{}};E=g.Xs(y.objectStore("index"),J,E);var N=-1===d.downloadedEndTime;y=N?y.objectStore("index").get(I):g.Os.resolve(void 0);return g.Os.all([y,z,E]).then(function(aa){aa=g.r(aa).next().value;tD--;var K=g.qD(a);4!==K&&N&&void 0!==aa&&g.yva(aa.fmts)&&(K=1,g.rD(a,K)); return K})}),8); case 8:return x.return(x.u);case 6:t=g.xa(x);tD--;w=g.qD(a);if(4===w)return x.return(w);g.rD(a,4);throw t;}})}; g.zva=function(a){var b,c;return g.B(function(d){if(1==d.j)return g.A(d,g.mt(),2);if(3!=d.j){b=d.u;if(!b)throw g.Ms("ri");return g.A(d,g.sD(b),3)}c=d.u;return d.return(g.Ws(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.zna(e.objectStore("index"),f).then(function(k){return k.map(function(l){return l?l.format:{}})})}))})}; Bva=function(a,b,c,d,e){var f,k,l;return g.B(function(m){if(1==m.j)return g.A(m,g.mt(),2);if(3!=m.j){f=m.u;if(!f)throw g.Ms("rc");return g.A(m,g.sD(f),3)}k=m.u;l=g.Ws(k,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){return Ava(e,n)})):m.return(l)})}; g.yva=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1}; wva=function(a,b){return""+a+"|"+(b?"v":"a")}; vva=function(){}; xva=function(a){var b={};return fr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; Dva=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.Cva)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(k){return k.start+"-"+k.end}).join(","); return c}; Eva=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.QI=PB(a.ustreamerConfig)||void 0)}; g.vD=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null}; g.xD=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.wD(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; g.yD=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.wD=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")}; Iva=function(a,b,c,d){a||(a=b&&Fva.hasOwnProperty(b)&&Gva.hasOwnProperty(b)?Gva[b]+"_"+Fva[b]:void 0);b=a;if(!b)return null;a=b.match(Hva);if(!a||5!==a.length)return null;if(a=b.match(Hva)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null}; Kva=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return Jva[a];return null}; zD=function(a){return a&&a.baseUrl||""}; AD=function(a){a=g.ir(a);for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; Lva=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Pa=b)}; Nva=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Mva(d.baseUrl);if(!e)return;d=new g.vD({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.Jw(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.Tv=b.audioTracks||[];a.OQ=b.defaultAudioTrackIndex||0;a.UD=b.translationLanguages?g.Kl(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.Jw(f.languageName)}}): []; a.Rp=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; Ova=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(k){var l=k.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(k=k.playerVars)return Object.assign({is_yto_interstitial:!0},gr(k))}); d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,vk:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,vk:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e, vk:0===f?5:7})}}}; Pva=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; Qva=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)}; Wva=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=a.cipher||a.signatureCipher)? (c=gr(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=Rva[c]);(c=a.projectionType)&&(b.projection_type=Sva[c]);(c=a.stereoLayout)&&(b.stereo_layout=Tva[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Uva[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(BD[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec= c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=Kva(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Vva[a])&&(b.primaries=a);return g.aj(b)}; CD=function(a){g.cv.call(this);this.j=null;this.B=new fq;this.j=null;this.K=new Set;this.D=a||""}; Xva=function(a,b,c){for(c=DD(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(ED(d,b))&&(d=g.FD(d,b)))return d;c--}return g.FD(a.levels[0],b)}; Zva=function(a,b,c){c=DD(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=ED(d,b),!d.isLoaded(e)){d=a;var f=c,k=f+"-"+e;d.K.has(k)||(d.K.add(k),d.B.enqueue(f,{zN:f,QN:e}))}Yva(a)}; Yva=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=$va(a,b)}}; $va=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=GD(a.levels[b.zN],b.QN);c.onload=function(){var d=b.zN,e=b.QN;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);Yva(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.iD()-1);e=[e,d];a.ea("l",e[0],e[1])}; return c}; g.HD=function(a,b,c,d){this.level=a;this.C=b;this.loaded=new Set;this.level=a;this.C=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.signature=a[7];this.videoLength=d}; ED=function(a,b){return Math.floor(b/(a.columns*a.rows))}; GD=function(a,b){var c=a.C;c=c.replace("$N",a.B);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.cj(c,{sigh:a.signature}));return Aw(c)}; g.FD=function(a,b){b>=a.jD()&&a.Jp();var c=ED(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Jp()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; JD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.HD.call(this,a,b,c,0);this.u=null;this.D=d?2:0}; KD=function(a,b,c,d){ID.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(tA()||d.S("html5_format_hybridization"))&&(q.u.supportsChangeType= +tA(),q.X=b);2160<=b&&(q.ra=!0);Uta()&&(q.u.serveVp9OverAv1IfHigherRes=0,q.ub=!1);q.eE=m;m=g.ht||ds()&&!m?!1:!0;q.Ia=m;q.va=d.S("html5_format_hybridization");q.ib=d.S("html5_disable_encrypted_vp9_live_non_2k_4k");Vr()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.J=!0);a.Da&&a.isAd()&&(a.fm&&(q.Z=a.fm),a.cm&&(q.C=a.cm));q.Ha=a.isLivePlayback&&XD(a)&&a.B.S("html5_drm_live_audio_51"); return a.Qb=q}; twa=function(a){fx("drm_pb_s",void 0,a.va);a.Cc||a.j&&Px(a.j);var b={};a.j&&(b=yra(YD(a),a.B.u,a.j,function(c){return a.ea("ctmp","fmtflt",c)},!0)); b=new $A(b,a.B.experiments,a.qN,swa(a),function(c,d){a.ya(c,d)}); g.H(a,b);a.Bk=!1;a.Ha=!0;$ta(b,function(c){fx("drm_pb_f",void 0,a.va);for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Cc;e.K=a.M_;e.J=a.x_;break;case "widevine":e.B=a.JN}a.Or=c;if(0p&&(p=w.zf().audio.numChannels)}2=a.C.videoInfos.length)&&(b=$z(a.C.videoInfos[0]),b!=("fairplay"==a.N.flavor)))for(c=g.r(a.Or),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.N=d;break}}; cE=function(a,b){a.Cb=b;Ewa(a,new Ix(g.Kl(a.Cb,function(c){return c.zf()})))}; Fwa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Lr&&(b.ptk=a.Lr,b.oid=a.BK,b.ptchn=a.AK,b.pltype=a.CK,a.Jq&&(b.m=a.Jq));return b}; g.dE=function(a){return RD(a)&&a.Cc?(a={},a.fairplay="https://web.archive.org/web/20220328145930/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Rd||null}; Gwa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.Jw(b.text):a.paidContentOverlayText}; eE=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Lh(b.durationMs):a.paidContentOverlayDurationMs}; fE=function(a){var b="";if(a.SC)return a.SC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.gf?"post":a.fh?"window":"live");return b}; g.gE=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; hE=function(a){return!!(a.ib||a.adaptiveFormats||a.cj||a.bj||a.hlsvp)}; ND=function(a){if(a.S("html5_onesie")&&a.errorCode)return!1;var b=g.bc(a.ra,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ha&&(hE(a)||g.bc(a.ra,"heartbeat")||b)}; $D=function(a,b){a=hr(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; pwa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==b?void 0:null==(c=b.buttonRenderer)?void 0:c.navigationEndpoint)||(null==b?void 0:null==(d=b.buttonRenderer)?void 0:d.command);e&&(a.Lk=!!e.copyTextEndpoint)}; dwa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Ag=c);if(a.Ag){if(c=a.Ag.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Ag.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Va=d,a.D=!0):(a.Va="",a.D=!1);if(d=c.defaultThumbnail)a.Z=jD(d),a.sampledThumbnailColor= d.sampledThumbnailColor;var e;(d=null==c?void 0:null==(e=c.videoDetails)?void 0:e.embeddedPlayerOverlayVideoDetailsRenderer)&&qwa(a,b,d);var f;if(e=null==c?void 0:null==(f=c.videoDetails)?void 0:f.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.AG=e.title,a.oG=e.byline,e.musicVideoType&&(a.musicVideoType=e.musicVideoType);a.Pf=!!c.addToWatchLaterButton;pwa(a,c.shareButton);var k,l,m;if(f=null==c?void 0:null==(k=c.playButton)?void 0:null==(l=k.buttonRenderer)?void 0:null==(m=l.navigationEndpoint)? void 0:m.watchEndpoint)owa(a,f),a.videoId=f.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Lh(c.videoDurationSeconds));c.webPlayerActionsPorting&&Qva(a,c.webPlayerActionsPorting);var n;if(k=null==c?void 0:null==(n=c.playlist)?void 0:n.playlistPanelRenderer){n=[];l=Number(k.currentIndex);if(k.contents)for(m=0,f=k.contents.length;m(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===zC(c)||"TVHTML5"===zC(c)&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.deviceParams.ctheme;!a.Td&&(c||Uua(a.B))&&!b&& (b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.S("cast_prefer_audio_only_for_atv_and_uploads")||a.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.Td=!0);return!a.B.deviceHasDisplay||a.Td&&a.B.B}; Lwa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; vE=function(a){return!(!a.zj||!a.B.B)&&!!a.adaptiveFormats}; mwa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.qD(b);return b&&!a.zj}; g.wE=function(a){if(!a.j||!a.u||!a.J)return!1;var b=a.j.j;return!!b[a.u.id]&&Xx(b[a.u.id].u.j)&&!!b[a.J.id]&&Xx(b[a.J.id].u.j)}; Mwa=function(a){return a.Nr?["OK","LIVE_STREAM_OFFLINE"].includes(a.Nr.status):!0}; Hwa=function(a){return(a=a.Aj)&&a.showError?a.showError:!1}; ZD=function(a,b){return a.S(b)?!0:(a.fflags||"").includes(b+"=true")}; Nwa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; iwa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.WC=b.quartile_0_url,a.KK=b.quartile_25_url,a.MK=b.quartile_50_url,a.OK=b.quartile_75_url,a.IK=b.quartile_100_url,a.Dk=b.quartile_0_urls,a.ZC=b.quartile_25_urls,a.aD=b.quartile_50_urls,a.bD=b.quartile_75_urls,a.YC=b.quartile_100_urls}; QD=function(a){return a?cB()?!0:xE&&5>yE?!1:!0:!1}; hwa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; Mva=function(a){if(a){if(Nqa(a))return a;a=Oqa(a);if(Nqa(a,!0))return a}return""}; g.Owa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.gE(a,"yt:cc_default_lang")||a.B.qf}; zE=function(a){return!!(a.S("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())}; AE=function(a,b){this.j=a;this.Z=b||{};this.J=String(Math.floor(1E9*Math.random()));this.D={};this.X=this.N=0}; Pwa=function(a){return BE(a)&&1==a.getPlayerState(2)}; BE=function(a){a=a.Kc();return void 0!==a&&2==a.getPlayerType()}; CE=function(a){a=a.V();return AC(a)&&!g.MC(a)&&"desktop-polymer"==a.playerStyle}; DE=function(a,b){var c=a.V();pC(c)||"3"!=c.controlsType||a.bb().uy(b)}; FE=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.j=e;this.u=f;this.id=EE(a)}; EE=function(a){return a+(":"+(gq.getInstance().j++).toString(36))}; GE=function(a){this.Y=a}; Qwa=function(a,b){if(0===b||1===b&&(a.Y.isMobile&&g.Ks?0:a.Y.isMobile||g.MC(a.Y)||g.BC(a.Y)||CC(a.Y)||!g.Ks))return!0;a=g.Sh("video-ads");return null!=a&&"none"!==Gm(a,"display")}; Rwa=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; HE=function(){g.cv.call(this);var a=this;this.j={};g.Bf(this,function(){for(var b=g.r(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; JE=function(){if(null===IE){IE=new HE;Nl(dp).u="b";var a=Nl(dp),b="h"==Xo(a)||"b"==Xo(a),c=!(Sl(),!1);b&&c&&(a.C=!0,a.D=new Vga)}return IE}; Swa=function(a,b,c){a.j[b]=c}; Twa=function(){}; KE=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); c=0;for(a+=1;a=c*a.u.XC||d)&&fF(a,"first_quartile");(b>=c*a.u.SECOND||d)&&fF(a,"midpoint");(b>=c*a.u.SD||d)&&fF(a,"third_quartile")}; kxa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.XC||d)&&fF(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&fF(a,"unmuted_midpoint");(b>=c*a.u.SD||d)&&fF(a,"unmuted_third_quartile")}; jF=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;fF(a,b)}; hxa=function(a,b,c){if(0m.K&&m.Eh()}}; qxa=function(a,b){if(a.B&&a.Z)if(a.Z=!1,a.I.V().experiments.kb("html5_externally_manage_ad_notify_layout")){var c=a.D.j;if(DF(c)){var d=c.slot;c=c.layout;b=pxa(b);a=g.r(a.B.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,k=c,l=b;FF(e.j(),f,k,l);GF(e.j(),f)}}else g.Mv(Error("adMessageRenderer is not augmented on termination"))}else for(d=g.r(a.B.listeners),c=d.next();!c.done;c=d.next())c=c.value,c.B?(b=c.B,c.B=void 0,c.u=void 0,GF(c.j(),b)):T("Received AdNotify terminated event when no slot is active")}; pxa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return"abandoned";default:return g.Mv(Error("Unexpected eventType for adNotify exit")),"abandoned"}}; g.HF=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={OC:c.OC},e=d.next())e=e.value,c.OC=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.OC}}(c)); return a}; IF=function(a){return a?g.Jw(a):null}; rxa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a}; sxa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; txa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; wxa=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(uxa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=IF(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& vxa(a,b,c,d))}}; uxa=function(a,b,c){var d=IF(b.confirmLabel)||"",e=IF(b.title)||"",f=[];if(b.adReasons)for(var k=g.r(b.adReasons),l=k.next();!l.done;l=k.next())f.push(IF(l.value)||"");k=b.headerTitle?g.Jw(b.headerTitle):"";d={closeButton:d,menuTitle:k,targetingReasonHeader:e,targetingReasons:f,dialogMessage:IF(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints), n=m.next();!n.done;n=m.next())c(n.value)}; a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}}; vxa=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:IF(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=rxa(b.navigationEndpoint);var k=txa(b[1]),l=[txa(b[0])];(b=sxa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(k)}; a.muteAd=function(){m||c(k);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)}; xxa(a,e,d)}}}; xxa=function(a,b,c){a.muteAdInfo.goneText=IF(b.title)||"";a.muteAdInfo.questionText=IF(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=IF(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)}; a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=IF(e.reason)||"";e=rxa(e.endpoint)[0];a.push({label:d,url:e})}}; JF=function(a,b,c,d,e,f){this.u=a;this.D=b;this.j=XE(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.j[b]=f[b];this.B=c;this.C=e}; yxa=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Kd(e):a.B.yq()}; b.skipShown=function(){a.Kd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}}; zxa=function(a,b,c){wxa(b,c,function(d){a.Kd(d)},function(d){a.sendAdsPing(d)})}; Axa=function(a){for(var b={},c=g.r(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.j[d].toString();return Object.assign(b,a.D)}; Bxa=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){}, instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){}, muteAdClicked:function(){}, sendAdsPing:function(){}, skip:function(){}, endSurveyOnSubmitted:function(){}, skipShown:function(){}, whyThisAdClicked:function(){}, whyThisAdClosed:function(){}, daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}}; Cxa=function(a,b,c,d,e){new JF(a,b,c,d,e,void 0)}; KF=function(a){this.value=a}; LF=function(a){this.value=a}; MF=function(a){this.value=a}; NF=function(a){this.value=a}; OF=function(a){this.value=a}; PF=function(){KF.apply(this,arguments)}; QF=function(a){this.value=a}; RF=function(a){this.value=a}; SF=function(a){this.value=a}; TF=function(a){this.value=a}; UF=function(a){this.value=a}; VF=function(a){this.value=a}; WF=function(){KF.apply(this,arguments)}; XF=function(){KF.apply(this,arguments)}; YF=function(a){this.value=a}; ZF=function(a){this.value=a}; $F=function(a){this.value=a}; aG=function(a){this.value=a}; bG=function(a){this.value=a}; cG=function(a){this.value=a}; dG=function(a){this.value=a}; eG=function(a){this.value=a}; fG=function(a){this.value=a}; gG=function(a){this.value=a}; hG=function(a){this.value=a}; iG=function(a){this.value=a}; jG=function(a){this.value=a}; kG=function(a){this.value=a}; lG=function(a){this.value=a}; mG=function(a){this.value=a}; nG=function(a){this.value=a}; oG=function(a){this.value=a}; pG=function(a){this.value=a}; qG=function(a){this.value=a}; rG=function(a){this.value=a}; sG=function(a){this.value=a}; tG=function(a){this.value=a}; uG=function(a){this.value=a}; vG=function(a){this.value=a}; wG=function(a){this.value=a}; xG=function(a){this.value=a}; yG=function(a){this.value=a}; zG=function(a){this.value=a}; AG=function(a){this.value=a}; BG=function(a){this.value=a}; CG=function(a){this.value=a}; DG=function(a){this.value=a}; EG=function(a){this.value=a}; FG=function(){KF.apply(this,arguments)}; GG=function(){KF.apply(this,arguments)}; HG=function(){KF.apply(this,arguments)}; IG=function(){KF.apply(this,arguments)}; JG=function(){KF.apply(this,arguments)}; KG=function(){KF.apply(this,arguments)}; Exa=function(a){if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var b,c,d=(null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon)||(null==(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)?void 0:c.surveyAdQuestionCommon);return Dxa(d)?!0:!1}; Fxa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null==(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)?void 0:b.surveyAdQuestionCommon,b=Dxa(a)):b=!1:b=!1;return b}; Dxa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null==b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null==b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1}; Hxa=function(a,b,c,d,e,f){this.j=new JF(a,b,c,d,e,Gxa(f))}; Ixa=function(a,b){var c=Bxa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.j.Kd(d)}; b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":yxa(a.j,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":zxa(a.j, c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.j.sendAdsPing(d)}; return c}; Gxa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=WE(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())}); b.SURVEY_ELAPSED_MS=WE(a);return b}; LG=function(a,b,c){g.cv.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Rb=new g.yi(200);this.Rb.Oa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.j+=f;d.j>=d.u&&(d.j=d.u,d.Rb.stop());e=d.j/1E3;d.D&&d.D.Pb(e);Jxa(d,{current:e,duration:d.u/1E3})}); g.H(this,this.Rb);this.j=0;this.B=null;g.Bf(this,function(){d.B=null}); this.C=0}; Jxa=function(a,b){a.J.Na("onAdPlaybackProgress",b);a.B=b}; MG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;FE.call(this,"survey",a,{},b,c);this.Pg=d;this.jj=e}; NG=function(a,b,c){g.cv.call(this);var d=this;this.durationMs=a;this.C=b;this.D=c;this.u=!1;this.B=this.j=0;this.timer=new g.yi(200);g.H(this,this.timer);this.timer.Oa("tick",function(){d.Pb()})}; OG=function(){ux("pbp")||ux("pbs")||vx("pbp");ux("pbp","watch")||ux("pbs","watch")||vx("pbp",void 0,"watch")}; PG=function(a,b,c){ux(a,c)||vx(a,b,c);ux(a,"video_to_ad")||vx(a,b,"video_to_ad");ux(a,"ad_to_video")||vx(a,b,"ad_to_video");ux(a,"ad_to_ad")||vx(a,b,"ad_to_ad")}; QG=function(a,b,c,d,e,f,k){sF.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.J=new $u;g.H(this,this.J);this.J.T(this.I,"resize",function(){450>l.I.bb().Eg().width&&(g.bv(l.J),l.Gg())}); this.Z=0;this.K=null;this.X=k(this,function(){return""+(Date.now()-l.Z)}); if(this.B=g.BC(a.V())?new LG(1E3*b.u,a,f):null)g.H(this,this.B),this.J.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&Kxa(l)})}; Lxa=function(a,b){b=Ixa(a.X,b);a.I.Na("onAdInfoChange",b)}; Kxa=function(a){var b=a.D.j;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.X.Kd(b&&b.timeoutCommands)):g.S(Error("Expected a survey question in InstreamSurveyAdRenderer."))}; RG=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;FE.call(this,"survey-interstitial",a,b,c,d);this.Pg=e;this.YH=f}; SG=function(a,b,c,d,e){sF.call(this,a,b,c,d,e,1);this.B=b}; TG=function(a,b,c,d,e,f,k,l,m){sF.call(this,a,b,c,d,e,1);var n=this;this.TA=!0;this.K=m;this.B=b;this.D=f;this.Z=new $u(this);g.H(this,this.Z);this.J=new g.L(function(){n.ih("load_timeout")},1E4); g.H(this,this.J);this.X=k}; Mxa=function(a){if(a.X&&(a.I.V().experiments.kb("enable_topsoil_wta_for_halftime")||a.I.V().experiments.kb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.S(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.S(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,k){return f+k},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}}; ZG=function(a,b){if(null!==a.K){var c=Nxa(a);a=g.r(a.K.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,k=!1;d.j||"aderror"!==f||(Oxa(d,e,[],!1),UG(d.B(),d.u),VG(d.B(),d.u),WG(d.B(),d.u),k=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}FF(d.B(),d.u,d.j,e);if(k){e=d.B();k=d.u;XG(e.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",k);e=g.r(e.Ud);for(f=e.next();!f.done;f=e.next())f.value.Yi(k);GF(d.B(), d.u)}d.Ka.get().I.V().S("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&YG(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}}; $G=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""}; Nxa=function(a){if(a=a.B.j.elementId)return a;g.S(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""}; Pxa=function(a){function b(l,m){l=a.tZ;var n=Object.assign({},{});n.FINAL=WE(Jg("1"));n.SLOT_POS=WE(Jg("0"));return ZE(l,YE(n),m)} function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n); n=a.vC(m,q);m=l(m,q,n,p);g.H(m,n);return m}}} var d=c(function(l,m,n){return new xF(a.I,l,m,n,a.nq,a.eb)}),e=c(function(l,m,n){return new SG(a.I,l,m,n,a.nq)}),f=c(function(l,m,n){return new EF(a.I,l,m,n,a.nq,a.eb,a.Oj,a.Nm)}),k=c(function(l,m,n){return new BF(a.I,l,m,n,a.nq,a.eb)}); this.AT=new nxa({create:function(l,m){var n=ZE(b(l,m),YE(cxa(l)));m=a.vC(l,n);l=new TG(a.I,l,n,m,a.nq,a.eb,a.daiEnabled,function(p){return new Cxa(a.eb,n,p,a.I,a.Xh)},a.Om,a.Rf); g.H(l,m);return l}},{create:function(l,m){var n=a.vC(l,m); l=new QG(a.I,l,m,n,a.nq,a.eb,function(p,q){return new Hxa(a.eb,m,p,a.I,a.Xh,q)}); g.H(l,n);return l}},d,e,f,k)}; aH=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b}; Qxa=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{gU:new Np(b,c),vV:new uw(b,c-b,a.context,a.identifier,a.event,a.Hu)}}; bH=function(){this.j=[]}; cH=function(a,b,c){var d=g.oc(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; Rxa=function(){this.j=new bH}; dH=function(a){this.j=a}; Sxa=function(a){a=[a,a.C].filter(function(d){return!!d}); for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; Txa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()}; Uxa=function(a,b,c){a.j&&eH({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})}; Vxa=function(a,b){a.j&&eH({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.HT}})}; Wxa=function(a,b){eH({daiStateTrigger:{errorType:a,contentCpn:b}})}; eH=function(a){g.xs("adsClientStateChange",a)}; fH=function(a){this.I=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.ze=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Yxa=function(a,b,c,d,e,f){f();var k=a.I.getVideoData(1),l=a.I.getVideoData(2);k&&(a.contentCpn=k.clientPlaybackNonce,a.videoId=k.videoId,a.j=k.X);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.ze=!0,(a.I.S("send_csi_info_for_ad_to_video_killswitch")||ux("_start",a.actionType))&& Xxa(a)))}; Xxa=function(a){if(a.ze)if(a.I.S("web_csi_via_jspb")){var b=new Iq,c=Zxa(a.B);g.D(b,21,c);g.D(b,7,4);c=new Fq;g.D(c,8,2);xe(b,22,c);g.D(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&g.D(b,76,a.contentCpn),a.videoId&&g.D(b,78,a.videoId)):(a.adCpn&&g.D(b,76,a.adCpn),a.adVideoId&&g.D(b,78,a.adVideoId));c=ora(a.actionType);a.adFormat&&!c&&g.D(b,12,a.adFormat);a.contentCpn&&g.D(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&g.D(b,28,a.adCpn);a.adVideoId&&g.D(b,20,a.adVideoId); tx(b,a.actionType)}else b={adBreakType:Zxa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),c=ora(a.actionType),a.adFormat&&!c&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId), a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),gx(b,a.actionType)}; Zxa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; g.aya=function(a){return(a=$xa[a.toString()])?a:"LICENSE"}; gH=function(){g.G.call(this);this.u=null;this.K=this.J=!1;this.C=new g.Fg;g.H(this,this.C)}; hH=function(a){a=a.Uw();return 1>a.length?NaN:a.end(a.length-1)}; bya=function(a,b,c){a.Tl()||a.getCurrentTime()>b||10d.length||(d[0]in Cya&&(f.clientName=Cya[d[0]]),d[1]in Dya&&(f.platform=Dya[d[1]]),f.applicationState=k,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.gJ=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; hJ=function(a,b,c,d,e,f,k){PI.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e,f);this.videoAdDurationSeconds=k;this.B=null;this.hide()}; iJ=function(a,b,c,d,e){NI.call(this,a,b,c,d,e,"ytp-video-ad-top-bar-title","ad-title")}; jJ=function(a,b){this.u=a;this.j=b}; kJ=function(a){return a.j-a.u}; lJ=function(a,b){return a.u+b*kJ(a)}; mJ=function(a,b,c){return kJ(a)?g.xh((b-a.u)/kJ(a),0,1):null!=c?c:Infinity}; nJ=function(a,b){g.hI.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Hc=this.Ca("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; oJ=function(a,b,c,d,e,f,k){iI.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d,e);this.J=k;this.N=this.Ca("ytp-ad-player-overlay-flyout-cta");this.B=this.Ca("ytp-ad-player-overlay-instream-info");this.C=null;DAa(this)&& (a=Wh("div"),g.M(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new iJ(this.api,this.eb,this.layoutId,this.j,this.jb),c.Ba(a),c.init(EE("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.C=a);this.D=this.Ca("ytp-ad-player-overlay-skip-or-preview");this.xa=this.Ca("ytp-ad-player-overlay-progress-bar");this.Z=this.Ca("ytp-ad-player-overlay-instream-user-sentiment");this.u=f;g.H(this,this.u); this.hide()}; DAa=function(a){a=a.api.V();return g.tC(a)&&a.isMobile}; FAa=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Xi(window.location.href);e&&d.push(e);e=g.Xi(a);if(g.bc(d,e)||!e&&ib(a,"/"))if(g.Q("autoescape_tempdata_url")&&(d=document.createElement("a"),g.uh(d,a),a=d.href),a&&(a=Hca(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Fv()},b)),f){var f=parseInt(f,10);isFinite(f)&&0a}; g.hK=function(a,b){var c=g.XA(b.experiments,"bg_vm_reinit_threshold");b.S("always_reinit_bg_vm")&&(c=0);a.program&&(2===g.TJ.state?0:fK(c))&&(vx("bg_i",void 0,"player_att"),g.TJ.initialize(a,function(){var d=a.serverEnvironment;vx("bg_l",void 0,"player_att");eK=(0,g.R)();for(var e=0;et.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:xBa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:yBa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]|| "",platform:zBa[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){w=void 0;try{w=JSON.parse(n)}catch(z){g.Mv(z)}w&&(t={params:[{key:"ms",value:w.ms}]},q.osName=w.os_name,q.userAgent=w.user_agent,q.windowHeightPoints=w.window_height_points,q.windowWidthPoints=w.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});k.mdxContext=m;m=b.width;0< m&&(k.playerWidthPixels=Math.round(m));if(b=b.height)k.playerHeightPixels=Math.round(b);0!==c&&(k.vis=c);if(c=f.widgetReferrer)k.widgetReferrer=c.substring(0,128);g.kC(f)&&!f.S("embeds_enable_sending_ancestor_origins_killswitch")&&k&&(k.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:k}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk= !0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.ls(g.ks.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.OC(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.PQ&&(d.captionParams.deviceCaptionsLangPref=a.PQ);a.PD.length?d.captionParams.viewerSelectedCaptionLangs=a.PD:g.KC(e)&&e.S("web_player_i_see_captions_2")&&(f=g.Vta(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&& a.S("html5_onesie_attach_po_token");k="onesie"!==a.fetchType&&a.S("html5_non_onesie_attach_po_token");if(f||k)a=a.V(),a.Od&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Od);e.S("fetch_att_independently")?d.attestationRequest={omitBotguardData:!0}:e.S("html5_exclude_bg_vm_data")&&(a=g.XA(e.experiments,"bg_vm_reinit_threshold"),d.attestationRequest={omitBotguardData:!fK(a)});return d}; CBa=function(a,b){var c,d,e;return g.B(function(f){if(1==f.j)return c={context:g.lK(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.yJ(BBa),g.A(f,g.KH(b,c,d,void 0,void 0),2);e=f.u;return f.return(e)})}; DBa=function(a,b,c){var d=g.XA(b.experiments,"bg_vm_reinit_threshold");fK(d)&&CBa(a,c).then(function(e){e.botguardData&&g.hK(e.botguardData,b)},function(e){a.isDisposed()||(e=$C(e),a.ya("attf",{error:e.errorCode}))})}; nK=function(){var a=EBa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Yia.apply(null,[Zia.apply(null,g.u(b))].concat(g.u(c)));this.store=aja(a,void 0,b)}; g.oK=function(a,b,c){for(var d=Object.assign({},a),e=g.r(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===k)d[f]=l;else if(Array.isArray(l)&&Array.isArray(k))d[f]=c?[].concat(g.u(k),g.u(l)):l;else if(!Array.isArray(l)&&g.Pa(l)&&!Array.isArray(k)&&g.Pa(k))d[f]=g.oK(k,l,c);else if(typeof l===typeof k)d[f]=l;else return b=new g.Cs("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Cha:k,La:l}),g.S(b),a}return d}; pK=function(a){this.u=a;this.C=this.j=0;this.B=-1}; qK=function(a){var b=iy(a.u,a.j);++a.j;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=iy(a.u,a.j),++a.j,d*=128,c+=(b&127)*d;return c}; rK=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.j+1<=a.u.totalLength;){0>c&&(c=qK(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:qK(a);break;case 1:a.j+=8;break;case 2:d=qK(a);a.j+=d;break;case 5:a.j+=4}}return!1}; sK=function(a,b){if(rK(a,b))return qK(a)}; FBa=function(a,b){if(rK(a,b))return!!qK(a)}; tK=function(a,b){if(rK(a,b)){b=qK(a);var c=hy(a.u,a.j,b);a.j+=b;return c}}; uK=function(a,b){if(a=tK(a,b))return g.oy(a)}; GBa=function(a,b,c){if(a=tK(a,b))return c(new pK(new cy([a])))}; vK=function(a,b){a=a instanceof Uint8Array?new cy([a]):a;return b(new pK(a))}; HBa=function(){this.j=0;this.B=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer)}; wK=function(a,b){b=a.j+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;cd;d++)a.view.setUint8(a.j,c&127|128),c>>=7,a.j+=1;b=Math.floor(b/268435456)}for(wK(a,4);127>=7,a.j+=1;a.view.setUint8(a.j,b);a.j+=1}; yK=function(a,b,c){void 0!==c&&(xK(a,b<<3|0),xK(a,c))}; zK=function(a,b,c){void 0!==c&&yK(a,b,c?1:0)}; AK=function(a,b,c){void 0!==c&&(xK(a,b<<3|2),b=c.length,xK(a,b),wK(a,b),a.u.set(c,a.j),a.j+=b)}; BK=function(a,b,c){void 0!==c&&(IBa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),wK(a,1.2*c.length),b=qy(c,a.u.subarray(a.j)),a.j+b>a.u.length&&(wK(a,b),b=qy(c,a.u.subarray(a.j))),a.j+=b,JBa(a))}; IBa=function(a,b,c){c=void 0===c?2:c;xK(a,b<<3|2);a.B.push(a.j);a.B.push(c);a.j+=c}; JBa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.j-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; CK=function(a,b,c,d,e){c&&(IBa(a,b,void 0===e?3:e),d(a,c),JBa(a))}; KBa=function(a,b){var c=new HBa;b(c,a);return new Uint8Array(c.u.buffer,0,c.j)}; g.DK=function(a){var b=new pK(new cy([Nc(decodeURIComponent(a))]));a=uK(b,2);b=sK(b,4);var c=LBa[b];if("undefined"===typeof c)throw a=new g.Cs("Failed to recognize field number",{name:"EntityKeyHelperError",gha:b}),g.S(a),a;return{wU:b,entityType:c,entityId:a}}; g.EK=function(a,b){var c=new HBa;BK(c,2,a);a=MBa[b];if("undefined"===typeof a)throw b=new g.Cs("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.S(b),b;yK(c,4,a);yK(c,5,1);b=new Uint8Array(c.u.buffer,0,c.j);return encodeURIComponent(g.Hc(b))}; FK=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; NBa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.oK(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; OBa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return GK(a)}; GK=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b=["endSeconds","startSeconds","mediaContentUrl","suggestedQuality","videoId"];c={};for(var d=0;dd&&(d=-(d+1));g.ai(a,b,d);b.setAttribute("data-layer",String(c))}; g.YK=function(a){var b=a.V();if(!b.Ub)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.S("allow_poltergust_autoplay"))&&!zE(c);d=c.isLivePlayback&&(!b.S("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.S("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&& (!d||e)&&!g.bc(c.ra,"ypc")&&!a&&(!g.kC(b)||f)}; ZBa=function(a){a=g.ZK(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.ZI)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ya("iqss",{trigger:d},!0),!0):!1}; $K=function(a){this.Y=a;this.u=this.j=NaN}; aL=function(a,b){this.Y=a;this.timerName="";this.C=!1;this.u=this.B=NaN;this.D=new $K(a);this.j=b||null;this.C=!1}; bL=function(a,b){PG(b,void 0,a.timerName)}; $Ba=function(a,b,c){var d=g.qC(b.B)&&!b.B.D;if(b.B.lh&&(mC(b.B)||"shortspage"===b.B.Ha||TC(b.B)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.P("TIMING_ACTION")||Uq("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&Uq("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Li();for(var e=g.r(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,fx(f,d[f],a.timerName);d=a.j.Wz;e=g.r(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.ix(f,d[f],a.timerName);d=a.j;d.j={};d.Wz={}}g.ix("yt_pvis", wx(),a.timerName);g.ix("yt_pt","html5",a.timerName);a.J!==b.clientPlaybackNonce||Number.isNaN(a.B)||(ux("_start",a.timerName)?c=Mw(a.timerName)._start+a.B:g.Mv(new g.Cs("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!ux("pbs",a.timerName)&&a.tick("pbs",c)}}; aCa=function(a){if(a.j){var b=a.j;b.j={};b.Wz={}}a.C=!1;a.J=void 0;a.B=NaN}; cL=function(a,b){g.cv.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=er(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new gD("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.hD(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0=a.length?0:b}; cCa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.eL=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.MD(a.u,b),g.H(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; fL=function(a,b){a.index=g.xh(b,0,a.length-1);a.startSeconds=0}; gL=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.eL(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; fCa=function(a,b){var c,d,e,f,k,l;return g.B(function(m){if(1==m.j){c=g.PJ();var n=a.V(),p={context:g.mK(a)};n.S("embeds_enable_sending_ancestor_origins_killswitch")||(p.playbackContext={contentPlaybackContext:{ancestorOrigins:n.ancestorOrigins}});n=n.embedConfig;var q=b.docid||b.video_id||b.videoId||b.id;if(!q){q=b.raw_embedded_player_response;if(!q&&!g.Q("parse_video_id_from_serialized_embedded_player_response_killswitch")){var t=b.embedded_player_response;t&&(q=JSON.parse(t))}if(q){var w,x,y,z, E,I,J;q=(null==(w=q)?void 0:null==(x=w.embedPreview)?void 0:null==(y=x.thumbnailPreviewRenderer)?void 0:null==(z=y.playButton)?void 0:null==(E=z.buttonRenderer)?void 0:null==(I=E.navigationEndpoint)?void 0:null==(J=I.watchEndpoint)?void 0:J.videoId)||null}else q=null}w=(w=q)?w:void 0;x=a.playlistId?a.playlistId:b.list;y=b.listType;if(x){var N;"user_uploads"===y?N={username:x}:N={playlistId:x};dCa(n,w,b,N);p.playlistRequest=N}else b.playlist?(N={templistVideoIds:b.playlist.toString().split(",")},dCa(n, w,b,N),p.playlistRequest=N):w&&(N={videoId:w},n&&(N.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=N);d=p;e=g.yJ(eCa);g.va(m,2);return g.A(m,g.KH(c,d,e),4)}if(2!=m.j)return f=m.u,k=a.V(),b.raw_embedded_player_response=f,m.return(new g.MD(k,b));l=g.xa(m);g.S(l);return m.return(a)})}; dCa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.iL=function(a,b){hL.get(a);hL.set(a,b)}; g.jL=function(a){g.cv.call(this);this.loaded=!1;this.player=a}; gCa=function(){this.u=[];this.j=[]}; g.kL=function(a,b){return b?a.j.concat(a.u):a.j}; g.lL=function(a,b){switch(b.kind){case "asr":hCa(b,a.u);break;default:hCa(b,a.j)}}; hCa=function(a,b){g.Zb(b,function(c){return a.equals(c)})||b.push(a)}; g.mL=function(a){g.G.call(this);this.Y=a;this.u=new gCa;this.C=[]}; g.nL=function(a,b,c){g.mL.call(this,a);this.audioTrack=c;this.j=null;this.C=b.UD}; iCa=function(){this.j=10;this.Ch=!1}; jCa=function(a,b){var c=void 0===b?{}:b,d=void 0===c.wl?!1:c.wl;b=new iCa;b.Ch=(void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4)||d;if(a=g.XA(a.experiments,"html5_time_based_consolidation_ms"))b.j=a;return b}; g.kCa=function(a){this.j=a;this.D=new iCa;this.Zl=this.Yl=!1;this.Kk=2;this.K=20971520;this.X=8388608;this.J=120;this.qb=3145728;this.xa=62914560;this.ub=10485760;this.Lk=g.XA(this.j.experiments,"html5_min_readbehind_secs");this.Jv=g.XA(this.j.experiments,"html5_min_readbehind_cap_secs");this.Iv=g.XA(this.j.experiments,"html5_max_readbehind_secs");this.Pv=this.j.S("html5_trim_future_discontiguous_ranges");this.Nb=NaN;this.lh=0;this.Sp=this.cj=this.Hp=2;this.Ha=2097152;this.Rp=1048576;this.Va=!1;this.Zf= 1800;this.Ik=5;this.va=15;this.Bd=1;this.B=1.15;this.C=1.05;this.nj=1;this.Pk=!0;this.Ia=!1;this.lq=.8;this.Qb=!1;this.Tv=this.j.S("html5_update_representation_init_boxes");this.Aj=!1;this.Cb=6;this.Z=this.ib=!1;this.Mk=this.Wb=0;this.Xr=this.j.S("html5_append_init_while_paused");this.cm=g.XA(this.j.experiments,"html5_post_interrupt_readahead");this.Gb=5E3;this.Gp=100;this.yj=10;this.Hr=g.XA(this.j.experiments,"html5_ssdai_failure_retry_limit")||3;this.xk=this.j.experiments.kb("html5_clone_original_for_fallback_location"); this.Ov=this.j.experiments.kb("html5_ssdai_reset_on_video_only_killswitch");this.Qf=1;this.fh=1.6;this.gb=!1;this.ma=.5;this.Cc=2;this.kc=this.Nr=0;this.Or=1.5;this.Fp=this.jh=.5;this.Td=15;this.Dk=1;this.Lq=this.Fb=!1;this.Jk=0;this.pm=this.Ir=this.Bk=this.gm=this.Qk=!1;this.Kb=2;this.qr=this.tj=!1;this.Bi=0;this.ag=this.Ip=this.ra=this.Mr=this.eg=!1;this.Pa=!0;this.Zc=this.Ub=this.fm=this.Ra=!1;this.wj=!0;this.dh=!1;this.u="";this.Es=1048576;this.Uc=[];this.Fs=this.j.S("html5_woffle_resume");this.Od= !1;this.Wa=!0;this.Bj=this.Qh=this.kd=!1;this.qf=46800;this.zk=this.Jq=this.pj=this.ej=this.hm=this.Pd=this.ob=!1;this.N=0;this.xj="";this.gs=this.j.S("html5_disable_codec_for_playback_on_error");this.Sh=this.Wr=this.zj=this.ah=!1;this.xe=0;this.Mv=Yr();this.er=this.Ck=!1;this.Yr=this.j.S("html5_skip_buffer_check_seek_to_head");this.Oc=!1;this.Bq=!this.j.S("html5_reset_media_stream_discontinuity_killswitch");this.bj=!1;this.Pf=8192;this.Da=this.Sb=!1;this.Iq=1;this.Sv=this.j.S("html5_update_readahead_from_real_byterates"); this.Qv=this.j.S("html5_onesie_live");this.Kv=g.XA(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Ok=g.XA(this.j.experiments,"html5_attach_num_random_bytes_to_bandaid");this.yk=this.j.experiments.kb("html5_onesie_consume_media_slices");this.Nv=this.j.S("html5_self_init_consolidation");this.Lr=this.j.S("html5_stream_metadata");this.Xa=this.j.S("html5_onesie_ads");this.Hv=this.j.S("html5_match_smb_cuepoints_start_secs");this.Zr=this.j.S("html5_live_partial_response_resumable");this.le=this.j.S("html5_ssdai_log_ad_transition_info"); this.Ak=this.j.S("html5_eliminate_net_retryexhausted_error");this.Nk=this.j.S("html5_no_deferred_permanent_error");this.Lv=g.XA(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3}; lCa=function(a,b){1080Math.random()){var z=new g.Cs("Unable to load player module",b,document.location&&document.location.origin);g.S(z)}ji(e);t&&t(y)}; var w=m,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":ji(f)}x&&x(y)}; l&&((k=a.I.V().cspNonce)&&m.setAttribute("nonce",k),g.Tj(m,g.Hp(b)),k=g.Ph("HEAD")[0]||document.body,k.insertBefore(m,k.firstChild),g.Bf(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; CL=function(a,b,c){g.Cf.call(this,b,a);this.j=c}; g.DL=function(a){gH.call(this);var b=this;this.j=a;this.D={};this.listener=function(c){b.dispatchEvent(new CL(b,c.type,c))}}; FL=function(a,b,c,d,e){g.cv.call(this);var f=this;this.target=a;this.Nz=b;this.u=0;this.J=!1;this.C=new g.Bh(NaN,NaN);this.j=new g.cA(this);this.va=this.B=this.K=null;g.H(this,this.j);b=d||e?4E3:3E3;this.X=new g.L(function(){EL(f,1,!1)},b,this); g.H(this,this.X);this.Z=new g.L(function(){EL(f,2,!1)},b,this); g.H(this,this.Z);this.ma=new g.L(function(){EL(f,512,!1)},b,this); g.H(this,this.ma);this.ra=c&&0=c.width||!c.height||0>=c.height||g.zw(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; HCa=function(a){var b=a.I.yb();b=b.isCued()||b.isError()?"none":g.qH(b)?"playing":"paused";a.mediaSession.playbackState=b}; TL=function(a){g.W.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.Ld=this.j=null;var b=a.V();a.S("enable_new_paid_product_placement")&&!g.NC(b)?(this.u=new g.W({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",oa:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",oa:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",oa:"{{chevron}}"}]}), this.T(this.u.element,"click",this.onClick)):this.u=new g.W({G:"div",Fa:["ytp-button","ytp-paid-content-overlay-text"],oa:"{{text}}"});this.C=new g.SI(this.u,250,!1,100);g.H(this,this.u);this.u.Ba(this.element);g.H(this,this.C);this.I.Yg(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Sc)}; JCa=function(a,b){var c=Gwa(b),d=eE(b);b.le&&a.I.ul()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.qp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&ICa(a,d,c,b)):c&&d&&ICa(a,d,c,b))}; ICa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.L(a.Db,b,a);g.H(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var k;f=null==b?void 0:null==(k=b.icon)?void 0:k.iconType;var l;k=null==e?void 0:null==(l=e.urlEndpoint)?void 0:l.url;a.I.jk(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=k?k:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",W:{fill:"none",height:"100%", viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:k?g.mI():null})}; KCa=function(a,b){a.j&&(g.V(b,8)&&a.B?(a.B=!1,a.od(),a.j.start()):(g.V(b,2)||g.V(b,64))&&a.videoId&&(a.videoId=null))}; UL=function(a){g.W.call(this,{G:"div",L:"ytp-spinner",U:[KL(),{G:"div",L:"ytp-spinner-message",oa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ca("ytp-spinner-message");this.j=new g.L(this.show,500,this);g.H(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.yb();LCa(a)?this.j.start():this.hide()}; LCa=function(a){return g.V(a,128)?!1:g.V(a,16)||g.V(a,1)?!0:!1}; g.VL=function(a,b,c,d){d=void 0===d?!1:d;g.hI.call(this,b);var e=this;this.I=a;this.xa=d;this.K=new g.cA(this);this.X=new g.SI(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())}); g.H(this,this.K);g.H(this,this.X)}; MCa=function(a){a.u&&(document.activeElement&&g.di(a.element,document.activeElement)&&(fi(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.bv(a.K);a.N=void 0}; WL=function(a,b,c){a.jg()?a.Db():a.od(b,c)}; XL=function(a){var b=g.PA(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Fa:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {G:"div",Fa:["ytp-unmute-text"],oa:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Fa:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.VL.call(this,a,{G:"button",Fa:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.Ab(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange", this.qg);this.Oa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.kC(this.api.V());g.gI(this,a);a&&NCa(this);this.B=a}; NCa=function(a){a.j||(a.j=!0,a.api.Za(a.element,!0))}; g.ZL=function(a){g.cA.call(this);var b=this;this.api=a;this.sG=!1;this.zl=null;this.Vz=!1;this.Le=null;this.DE=this.uC=!1;this.wI=this.yI=null;this.uN=NaN;this.vI=this.ww=!1;this.Ax=0;this.XD=[];var c=a.V(),d=a.bb();this.hL=new g.L(this.EG,0,this);g.H(this,this.hL);g.vC(c)||(this.Zk=new g.HL(a),g.H(this,this.Zk),g.XK(a,this.Zk.element,4));if(OCa(this)){var e=new UL(a);g.H(this,e);e=e.element;g.XK(a,e,4)}var f=a.getVideoData();this.Id=new FL(d,function(l){return b.Nz(l)},f,c.le,PC(c)); g.H(this,this.Id);this.Id.subscribe("autohideupdate",this.Yj,this);if(!c.disablePaidContentOverlay){var k=new TL(a);g.H(this,k);g.XK(a,k.element,4)}this.zC=new XL(a);g.H(this,this.zC);g.XK(this.api,this.zC.element,2);this.KF=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.qC=new g.L(this.Iu,200,this);g.H(this,this.qC);this.eG=f.videoId;this.BP=new g.L(function(){b.Ax=0},350); g.H(this,this.BP);this.Yz=new g.L(function(){b.vI||YL(b)},350,this); g.H(this,this.Yz);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.M(f,"ytp-color-white")}g.vC(c)&&g.M(f,"ytp-music-player");!a.S("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new RL(a),g.H(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.qg);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.SX);this.T(a,"autonavvisibility", function(){b.un()}); this.T(a,"sizestylechange",function(){b.un()}); this.T(d,"click",this.pY,this);this.T(d,"dblclick",this.qY,this);c.Wa&&(this.T(d,"gesturechange",this.rY,this),this.T(d,"gestureend",this.sY,this));this.Uo=[d.lw];this.Zk&&this.Uo.push(this.Zk.element);e&&this.Uo.push(e)}; $L=function(a,b){if(!b)return!1;var c=a.api.xd();if(c.Lp()&&(c=c.Ke())&&g.di(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; OCa=function(a){a=Tr()&&67<=Dma()&&!a.api.V().J;return!Sr("tizen")&&!hC&&!a&&!0}; cM=function(a,b){b=void 0===b?2:b;g.cv.call(this);this.api=a;this.j=null;this.Lc=new $u(this);g.H(this,this.Lc);this.u=CAa;this.Lc.T(this.api,"presentingplayerstatechange",this.Sc);this.j=this.Lc.T(this.api,"progresssync",this.Pb);this.vk=b;1===this.vk&&this.Pb()}; dM=function(a){g.W.call(this,{G:"button",Fa:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Ib:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.gI(this,a.V().showBackButton);this.Oa("click",this.onClick)}; g.eM=function(a){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",oa:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",oa:"{{icon}}"}]}]});this.I=a;this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()}; gM=function(a,b,c){if(0>=b){c=vI();b="muted";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";fM(a,c,b,d+"%")}; SCa=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.I.getPlaybackRate(),d=g.HF("Speed is $RATE",{RATE:String(c)});fM(a,b,d,c+"x")}; TCa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";fM(a,ACa(),b)}; fM=function(a,b,c,d){d=void 0===d?"":d;a.La("label",void 0===c?"":c);PC(a.I.V())?a.La("icon",null):a.La("icon",b);g.qp(a.j);a.u.start();a.La("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)}; iM=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.kC(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().S("player_new_info_card_format")?aAa():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",L:"ytp-cards-button-title",oa:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", L:"ytp-cards-button-title",oa:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.j=null;this.u=new g.SI(this,250,!0,100);g.H(this,this.u);g.O(this.C,"ytp-show-cards-title",g.kC(a.V()));this.hide();this.Oa("click",this.onClicked);this.Oa("mouseover",this.pX);hM(this,!0)}; hM=function(a,b){b?a.j=g.jM(a.B.lc(),a.element):(a.j=a.j,a.j(),a.j=null)}; kM=function(a,b,c){g.W.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().S("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[aAa()]},{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.nI()]}]:[{G:"span",L:"ytp-cards-teaser-label",oa:"{{text}}"}]}]});var d=this;this.I=a;this.X= b;this.Hi=c;this.C=new g.SI(this,250,!1,250);this.j=null;this.K=new g.L(this.DX,300,this);this.J=new g.L(this.CX,2E3,this);this.D=[];this.u=null;this.N=new g.L(function(){d.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.J);g.H(this,this.N);a.V().S("player_new_info_card_format")?(g.M(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ca("ytp-cards-teaser-close-button"),"click",this.Ti),this.T(this.Ca("ytp-cards-teaser-info-icon"),"click",this.mI),this.T(this.Ca("ytp-cards-teaser-label"),"click",this.mI)):this.Oa("click",this.mI);this.T(c.element,"mouseover",this.HJ);this.T(c.element,"mouseout",this.GJ);this.T(a,"cardsteasershow", this.QY);this.T(a,"cardsteaserhide",this.Db);this.T(a,"cardstatechange",this.AQ);this.T(a,"presentingplayerstatechange",this.AQ);this.T(a,"appresize",this.KI);this.T(a,"onShowControls",this.KI);this.T(a,"onHideControls",this.XT);this.Oa("mouseenter",this.XR)}; mM=function(a){g.W.call(this,{G:"button",Fa:[lM.BUTTON,lM.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:lM.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.rI()]},{G:"div",L:lM.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=a;this.j=!1;a.Ab(this.element,this,36927);this.Oa("click",this.onClick,this);this.La("pressed",!1);this.La("label","Get notified about every new video")}; UCa=function(a,b){a.j=b;a.element.classList.toggle(lM.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.OD:c.ND)?(a=a.api.ll())?FJ(a,b):g.br(Error("No innertube service available when updating notification preferences.")):g.br(Error("No update preferences command available.")):g.br(Error("No video data when updating notification preferences."))}; g.oM=function(a,b,c,d,e,f,k,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.qC(w)||g.uC(w))c.target=w.K;g.W.call(this,{G:"div",Fa:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",oa:b}:""]}]});f&&g.M(this.element, "ytp-sb-classic");this.channelId=k;this.j=t}else{p=w.userDisplayName&&g.qC(w)&&!w.S("subscribe_tooltipkillswitch");g.W.call(this,{G:"div",Fa:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.HF("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":UC(w),"data-tooltip-opaque":String(g.kC(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b? {G:"div",L:"ytp-sb-count",oa:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.HF("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":UC(w),"data-tooltip-opaque":String(g.kC(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",oa:d}:""]}]});var x=this;this.channelId=k;this.j=t;var y=this.Ca("ytp-sb-subscribe"),z=this.Ca("ytp-sb-unsubscribe"); f&&g.M(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var E=function(){var J=x.channelId;if(m||n){var N={c:J};if(q.V().S("embeds_botguard_with_subscribe_killswitch"))N="";else{var aa;g.TJ.isInitialized()&&(aa=lBa(N));N=aa||""}if(aa=q.getVideoData())if(aa=aa.subscribeCommand){var K=q.ll();K?(FJ(K,aa,{botguardResponse:N,feature:m}),q.Na("SUBSCRIBE",J)):g.br(Error("No innertube service available when updating subscriptions."))}else g.br(Error("No subscribe command in videoData."));else g.br(Error("No video data available when updating subscription."))}z.focus(); z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},I=function(){var J=x.channelId; if(m||n){var N=q.getVideoData();FJ(q.ll(),N.unsubscribeCommand,{feature:m});q.Na("UNSUBSCRIBE",J)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")}; this.T(y,"click",E);this.T(z,"click",I);this.T(y,"keypress",function(J){13===J.keyCode&&E(J)}); this.T(z,"keypress",function(J){13===J.keyCode&&I(J)}); this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.j&&p&&(this.tooltip=this.j.lc(),nM(this.tooltip),g.Bf(this,g.jM(this.tooltip,y)),g.Bf(this,g.jM(this.tooltip,z)))}else g.M(y,"ytp-sb-disabled"),g.M(z,"ytp-sb-disabled")}}; pM=function(a,b){g.W.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().K,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",oa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().K,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3", L:"ytp-title-expanded-subtitle",oa:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Ca("ytp-title-channel");this.j=this.Ca("ytp-title-channel-logo");this.C=this.Ca("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.kC(this.api.V());a.Ab(this.j,this,36925);this.D&&VCa(this);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja();g.kC(this.api.V())&&(this.api.V().S("embeds_web_enable_hiding_login_buttons")||this.api.V().S("embeds_web_enable_always_hiding_login_buttons"))&& g.M(this.element,"ytp-flyout-fix-experiment")}; VCa=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.Zc){var d=b.authUser?null:JAa(),e=new g.oM("Subscribe",null,"Subscribed",null,!0,!1,c.sj,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.H(a,e);e.Ba(a.C);a.api.Ab(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.wb(e.element)}); var f=new mM(a.api);a.u=f;g.H(a,f);f.Ba(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Sh&&f.show()}); a.T(a.api,"UNSUBSCRIBE",function(){c.Sh&&(f.hide(),UCa(f,!1))})}a.La("flyoutUnfocusable","true"); a.La("channelTitleFocusable","-1");b.isMobile?a.T(a.j,"click",function(k){WCa(a)&&(k.preventDefault(),a.isExpanded()?a.xE():a.UE());a.api.wb(a.j)}):(a.T(a.channel,"mouseenter",a.UE),a.T(a.channel,"mouseleave",a.xE),a.T(a.channel,"focusin",a.UE),a.T(a.channel,"focusout",function(k){a.channel.contains(k.relatedTarget)||a.xE()}),a.T(a.j,"click",function(){a.api.wb(a.j)})); a.B=new g.L(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.Za(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Za(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.H(a,a.B);a.T(a.channel,XCa,function(){YCa(a)}); a.T(a.api,"onHideControls",a.EH);a.T(a.api,"appresize",a.EH);a.T(a.api,"fullscreentoggled",a.EH)}; YCa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; WCa=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width}; ZCa=function(a,b){var c={};a.api.V().ma&&g.kK(c,a.api.V().loaderUrl);return g.cj(b,g.jK(c,"emb_ch_name_ex"))}; g.qM=function(a,b,c,d){g.hI.call(this,a);this.priority=b;c&&this.Jf(c);d&&this.Ad(d)}; g.rM=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Fa:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",oa:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",oa:"{{label}}"},{G:"div",L:"ytp-menuitem-content",oa:"{{content}}"}]}}; sM=function(a,b){a.La("icon",b)}; tM=function(a,b,c,d,e,f){var k={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",L:"ytp-panel-header",U:[{G:"div",Fa:["ytp-panel-back-button-container"],U:[{W:{"aria-label":"Back to previous menu"},G:"button",Fa:["ytp-button",l]}]},{W:{tabindex:"0"},G:"span",Fa:[m],U:[c]}]};if(e){var p="ytp-panel-options";n.U.push({G:"button",Fa:["ytp-button",p],U:[d]})}k.U=[n]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,k.U?k.U.push(f):k.U=[f]);g.hI.call(this, k);this.content=b;d&&k.U?b.Ba(this.element,k.U.length-1):b.Ba(this.element);this.PM=!1;this.mV=d;c&&(c=this.Ca(l),m=this.Ca(m),this.T(c,"click",this.iO),this.T(m,"click",this.iO),this.PM=!0,e&&(p=this.Ca(p),this.T(p,"click",e)));b.subscribe("size-change",this.oO,this);this.T(a,"fullscreentoggled",this.oO);g.O(this.element,"ytp-panel-min-width-killswitch",a.V().S("player_panel_min_width_killswitch"));this.I=a}; $Ca=function(a,b){var c=new g.hI({G:"div",L:"ytp-multi-item-panel"});a.content.Ba(c.element);b.Ba(c.element);a.content=c;c.Ba(a.element);g.H(a,c)}; g.uM=function(a,b,c,d,e,f){b=void 0===b?null:b;var k={role:"menu"};b&&(k.id=b);b=new g.hI({G:"div",L:"ytp-panel-menu",W:k});tM.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)}; g.vM=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.WG,a);a.items=[];g.$h(a.menuItems.element);a.menuItems.ea("size-change")}; aDa=function(a,b){return b.priority-a.priority}; wM=function(a){var b=g.rM({"aria-haspopup":"true"});g.qM.call(this,b,a);this.Oa("keydown",this.j)}; xM=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; yM=function(a,b){g.qM.call(this,g.rM({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Oa("click",this.onClick)}; zM=function(a,b){g.W.call(this,{G:"div",L:"ytp-user-info-panel",W:{"aria-label":"User info"},U:a.V().authUser&&!a.S("embeds_web_always_enable_signed_out_state")?[{G:"div",L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},oa:"{{watchingAsUsername}}"},{G:"div",L:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},oa:"{{watchingAsEmail}}"}]}]:[{G:"div", L:"ytp-user-info-panel-icon",oa:"{{icon}}"},{G:"div",L:"ytp-user-info-panel-content",U:[{G:"div",U:[{G:"text",W:{tabIndex:"{{userInfoFocusable}}"},oa:"Signed out"}]},{G:"div",L:"ytp-user-info-panel-login",U:[{G:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},oa:a.V().Zc?"":"Sign in on YouTube"}]}]}]});this.Ta=a;this.j=b;a.V().authUser||a.V().Zc||(a=this.Ca("ytp-user-info-panel-login"),this.T(a,"click",this.ZR));this.T(window,"blur",this.hide);this.T(document,"click",this.YR);this.Ja()}; AM=function(a,b,c,d){g.uM.call(this,a);this.rb=c;this.xc=d;this.getVideoUrl=new wM(6);this.Mj=new wM(5);this.Ij=new wM(4);this.Mb=new wM(3);this.ly=new g.qM(g.rM({href:"{{href}}",target:this.I.V().K},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.qM(g.rM(),1,"Stats for nerds");this.Ss=new g.hI({G:"div",Fa:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},oa:"{{text}}"});this.FL=new tM(this.I,this.Ss);this.Py=this.Ko=null;g.kC(this.I.V())&&this.I.S("embeds_web_enable_user_info_in_context_menu")&& (this.lj=new g.qM(g.rM(),8,"User info"),g.H(this,this.lj),this.wc(this.lj,!0),this.lj.Oa("click",this.CY,this),a.Ab(this.lj.element,this.lj,137682));this.I.V().xj&&(this.Qi=new yM("Loop",7),g.H(this,this.Qi),this.wc(this.Qi,!0),this.Qi.Oa("click",this.wX,this),a.Ab(this.Qi.element,this.Qi,28661));g.H(this,this.getVideoUrl);this.wc(this.getVideoUrl,!0);this.getVideoUrl.Oa("click",this.mX,this);a.Ab(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.Mj);this.wc(this.Mj,!0);this.Mj.Oa("click", this.nX,this);a.Ab(this.Mj.element,this.Mj,28660);g.H(this,this.Ij);this.wc(this.Ij,!0);this.Ij.Oa("click",this.lX,this);a.Ab(this.Ij.element,this.Ij,28658);g.H(this,this.Mb);this.wc(this.Mb,!0);this.Mb.Oa("click",this.kX,this);g.H(this,this.ly);this.wc(this.ly,!0);this.ly.Oa("click",this.lY,this);g.H(this,this.showVideoInfo);this.wc(this.showVideoInfo,!0);this.showVideoInfo.Oa("click",this.DY,this);g.H(this,this.Ss);this.Ss.Oa("click",this.YW,this);g.H(this,this.FL);b=document.queryCommandSupported&& document.queryCommandSupported("copy");43<=Nb("Chromium")&&(b=!0);40>=Nb("Firefox")&&(b=!1);b&&(this.Ko=new g.W({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.H(this,this.Ko),this.Ko.Ba(this.element));var e;null==(e=this.lj)||sM(e,dAa());var f;null==(f=this.Qi)||sM(f,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});sM(this.Mb,{G:"svg",W:{height:"24",viewBox:"0 0 24 24", width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});sM(this.ly,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]});sM(this.showVideoInfo,$za());this.T(a,"loopchange",this.yO);this.T(a,"videodatachange",this.onVideoDataChange);bDa(this);cDa(this,this.I.getVideoData())}; CM=function(a,b){var c=!1;if(a.Ko){var d=a.Ko.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.rb.Db():(a.Ss.Ad(b,"text"),g.BM(a.rb,a.FL),LL(a.Ss.element),a.Ko&&(a.Ko=null,bDa(a)));return c}; cDa=function(a,b){var c=a.I.V(),d=2===a.I.getPresentingPlayerType(),e=!d||b.isListed;e=!c.N&&!!b.videoId&&e;"play"!==c.playerStyle?c="https://web.archive.org/web/20220328145930/https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(c.fmt=b.u.Yb()),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.xa&&(c.partnerid=b.xa),c=g.cj("//web.archive.org/web/20220328145930/https://support.google.com/googleplay/",c));g.gI(a.Ij,e&&b.allowEmbed);g.gI(a.getVideoUrl,e);g.gI(a.Mj,e&&!b.isLivePlayback); a.ly.Ad(c,"href");var f;null==(f=a.Qi)||g.gI(f,!b.isLivePlayback&&!d);var k;null==(k=a.lj)||g.gI(k,!d)}; bDa=function(a){var b=!!a.Ko;a.Mb.Jf(b?"Copy debug info":"Get debug info");xM(a.Mb,!b);a.Ij.Jf(b?"Copy embed code":"Get embed code");xM(a.Ij,!b);a.getVideoUrl.Jf(b?"Copy video URL":"Get video URL");xM(a.getVideoUrl,!b);a.Mj.Jf(b?"Copy video URL at current time":"Get video URL at current time");xM(a.Mj,!b);sM(a.Ij,b?Yza():null);sM(a.getVideoUrl,b?pI():null);sM(a.Mj,b?pI():null)}; g.DM=function(a,b){g.VL.call(this,a,{G:"div",Fa:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.C=null;this.nz=this.maxWidth=0;this.size=new g.Dh(0,0);this.Oa("keydown",this.aS)}; dDa=function(a){var b=a.j[a.j.length-1];if(b){g.Nm(a.element,a.maxWidth||"100%",a.nz||"100%");b.I.V().S("player_panel_min_width_killswitch")&&g.Dm(b.element,"minWidth","250px");g.Dm(b.element,"width","");g.Dm(b.element,"height","");g.Dm(b.element,"maxWidth","100%");g.Dm(b.element,"maxHeight","100%");g.Dm(b.content.element,"height","");var c=g.Om(b.element);c.width+=1;c.height+=1;g.Dm(b.element,"width",c.width+"px");g.Dm(b.element,"height",c.height+"px");g.Dm(b.element,"maxWidth","");g.Dm(b.element, "maxHeight","");var d=0;b.PM&&(d=b.Ca("ytp-panel-header"),d=g.Om(d).height);var e=0;b.mV&&(e=b.Ca("ytp-panel-footer"),g.Dm(e,"width",c.width+"px"),e=g.Om(e).height);g.Dm(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];EM(a,b,c,!0)}}; EM=function(a,b,c,d){eDa(a);b&&(b.unsubscribe("size-change",a.Ou,a),b.unsubscribe("back",a.yh,a));c.subscribe("size-change",a.Ou,a);c.subscribe("back",a.yh,a);if(a.tb){g.M(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;dDa(a);g.Nm(a.element,e);a.C=new g.L(function(){fDa(a,b,c,d)},20,a); a.C.start()}else c.Ba(a.element),b&&b.detach()}; fDa=function(a,b,c,d){a.C.dispose();a.C=null;g.M(a.element,"ytp-popup-animating");d?(g.M(b.element,"ytp-panel-animate-forward"),g.wp(c.element,"ytp-panel-animate-back")):(g.M(b.element,"ytp-panel-animate-back"),g.wp(c.element,"ytp-panel-animate-forward"));g.Nm(a.element,a.size);a.J=new g.L(function(){g.wp(a.element,"ytp-popup-animating");b.detach();g.xp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a); a.J.start()}; eDa=function(a){a.C&&g.pp(a.C);a.J&&g.pp(a.J)}; g.GM=function(a,b,c){g.DM.call(this,a);this.va=b;this.xc=c;this.B=new g.cA(this);this.Z=new g.L(this.VY,1E3,this);this.ma=this.D=null;g.H(this,this.B);g.H(this,this.Z);a.Ab(this.element,this,28656);g.M(this.element,"ytp-contextmenu");gDa(this);this.hide()}; gDa=function(a){g.bv(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.bb();a.B.T(b,"contextmenu",a.VW);a.B.T(b,"touchstart",a.cS,null,!0);a.B.T(b,"touchmove",a.RO,null,!0);a.B.T(b,"touchend",a.RO,null,!0)}}; hDa=function(a){a.I.isFullscreen()?g.XK(a.I,a.element,10):a.Ba(document.body)}; g.HM=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{G:"button",Fa:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.kC(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",oa:"{{icon}}"},{G:"div",L:"ytp-copylink-title",oa:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.lc();b=a.V();nM(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.kC(b)&&!g.vC(b));a.Ab(this.element,this,86570);this.Oa("click", this.onClick);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.T(a,"appresize",this.Ja);this.Ja();g.Bf(this,g.jM(this.tooltip,this.element))}; iDa=function(a){a.La("icon",kI());if(a.api.V().isMobile)IM(a.tooltip,a.element,"Link copied to clipboard");else{a.La("title-attr","Link copied to clipboard");JM(a.tooltip);IM(a.tooltip,a.element);var b=a.Oa("mouseleave",function(){a.vc(b);a.Ja();a.tooltip.Ej()})}}; jDa=function(a,b){return g.B(function(c){if(1==c.j)return g.va(c,2),g.A(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.Yh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var k=a.api.getRootNode();k.appendChild(f);if($r){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}k.removeChild(f); return d.call(c,e)})}; KM=function(){g.W.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Fa:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",oa:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.u=new g.L(this.show,10,this);this.j=new g.L(this.hide,700,this); g.H(this,this.u);g.H(this,this.j);this.hide()}; LM=function(a){g.W.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div", L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",oa:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",oa:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.L(this.show,10,this);this.u=new g.L(this.hide,700,this);this.j=this.Ca("ytp-doubletap-static-circle");g.H(this,this.B);g.H(this,this.u);this.hide();this.C=this.Ca("ytp-doubletap-fast-forward-ve");this.D=this.Ca("ytp-doubletap-rewind-ve");this.I.Ab(this.C,this,28240);this.I.Ab(this.D,this,28239);this.I.Za(this.C,!0);this.I.Za(this.D, !0)}; kDa=function(a,b){b=g.HF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.La("seekTime",b)}; MM=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; NM=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1}; lDa=function(a,b){for(var c=0,d=g.r(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&bd;e={xn:e.xn},f++){e.xn=c[f];a:switch(e.xn.img||e.xn.iconId){case "facebook":var k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":k={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:k=null}k&&(k=new g.W({G:"a",Fa:["ytp-share-panel-service-button","ytp-button"],W:{href:e.xn.url,target:"_blank",title:e.xn.sname||e.xn.serviceName},U:[k]}),k.Oa("click",function(m){return function(n){if(g.gJ(n)){var p=m.xn.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";var t=q;t||(t={});q=window;var w=p instanceof g.ah?p:g.eh("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.crossOriginIsolated, y="strict-origin-when-cross-origin";window.Request&&(y=(new Request("/")).referrerPolicy);var z="unsafe-url"===y;y=t.noreferrer;if(x&&y){if(z)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");y=!1}p=t.target||p.target;x=[];for(var E in t)switch(E){case "width":case "height":case "top":case "left":x.push(E+"="+t[E]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(E+"="+(t[E]?1:0))}E=x.join(",");Sb()&& q.navigator&&q.navigator.standalone&&p&&"_self"!=p?(t=g.Yh("A"),g.uh(t,w),t.setAttribute("target",p),y&&t.setAttribute("rel","noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,q,1),t.dispatchEvent(w),q={}):y?(q=vh("",q,p,E),w=g.bh(w),q&&(g.RC&&g.ub(w,";")&&(w="'"+w.replace(/'/g,"%27")+"'"),q.opener=null,""===w&&(w="javascript:''"),w=g.th(g.Tg("b/12014412, meta tag with sanitized URL"),''),(t=q.document)&&t.write&&(t.write(g.qh(w)),t.close()))):(q=vh(w,q,p,E))&&t.noopener&&(q.opener=null);q&&(q.opener||(q.opener=window),q.focus());g.ou(n)}}}(e)),g.Bf(k,g.jM(a.tooltip,k.element)),a.j.push(k),d++)}var l=b.more||b.moreLink; b=new g.W({G:"a",Fa:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],W:{href:l,target:"_blank",title:"More"}});b.Oa("click",function(m){g.JL(l,a.api,m)&&a.api.Na("SHARE_CLICKED")}); g.Bf(b,g.jM(a.tooltip,b.element));a.j.push(b);a.La("buttons",a.j)}; vDa=function(a){for(var b=g.r(a.j),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.zf(c);a.j=[]}; fN=function(a,b,c){c=void 0===c?!0:c;g.W.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.Wa=b;this.Ra=this.K=this.j=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.Ha=new g.L(function(){d.badge.element.style.width=""},200,this); this.Z=new g.L(function(){dN(d);eN(d)},200,this); this.dismissButton=new g.W({G:"button",Fa:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.J=new g.W({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",oa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.J);this.badge=new g.W({G:"button",Fa:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}: "",this.J]});g.H(this,this.badge);this.badge.Ba(this.element);this.N=new g.SI(this.badge,250,!1,100);g.H(this,this.N);this.va=new g.SI(this.J,250,!1,100);g.H(this,this.va);this.Ia=new g.mp(this.ZZ,null,this);g.H(this,this.Ia);this.ma=new g.mp(this.uU,null,this);g.H(this,this.ma);g.H(this,this.Ha);g.H(this,this.Z);this.I.Yg(this.badge.element,this.badge,!0);this.I.Yg(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.j=!1;eN(d);dN(d);d.ri()}); this.T(this.I,"onShowControls",function(){d.j=!0;eN(d);dN(d);d.ri()}); this.T(this.badge.element,"click",this.FG);this.T(this.dismissButton.element,"click",this.GG);this.T(this.I,"pageTransition",this.gS);this.T(this.I,"appresize",this.ri);this.T(this.I,"fullscreentoggled",this.iX);this.T(this.I,"cardstatechange",this.PW);this.T(this.I,"annotationvisibility",this.B_,this);this.T(this.I,"offlineslatestatechange",this.C_,this)}; dN=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.j||!a.u)}; eN=function(a,b){var c=a.K||a.j||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Ia.stop(),a.ma.stop(),a.Ha.stop(),a.Ia.start()):(g.gI(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),xDa(a))}; xDa=function(a){a.C&&a.I.Za(a.badge.element,a.By());a.D&&a.I.Za(a.dismissButton.element,a.By()&&(a.K||a.j||!a.u))}; yDa=function(a){var b=a.text||"";g.ei(g.Sh("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Pa?a.Pa:"")}; zDa=function(a,b){b?a.D&&a.I.wb(a.dismissButton.element):a.C&&a.I.wb(a.badge.element)}; gN=function(a,b){fN.call(this,a,b);var c=this;this.X=this.xa=this.Da=!1;this.T(this.I,g.Ew("shopping_overlay_visible"),function(){c.Ne(!0)}); this.T(this.I,g.Fw("shopping_overlay_visible"),function(){c.Ne(!1)}); this.T(this.I,g.Ew("shopping_overlay_expanded"),function(){c.K=!0;eN(c)}); this.T(this.I,g.Fw("shopping_overlay_expanded"),function(){c.K=!1;eN(c)}); this.T(this.I,"changeProductsInVideoVisibility",this.UX);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.MX)}; hN=function(a){a.I.jf("shopping_overlay_visible");a.I.jf("shopping_overlay_expanded")}; iN=function(a){g.VL.call(this,a,{G:"button",Fa:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",oa:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.L(function(){b.hide()},5E3); this.j=this.B=NaN;g.H(this,this.C);this.ma=function(){b.show()}; this.Z=function(){b.hide()}; this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c=m&&(q-=1/n);p-=2/n;a=a.style;a.width=p+"px";a.height=q+"px";e||(d=(d-q)/2,c=(c-p)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+ ") "+t+"px "+w+"px/"+(null!=k?k:f)+"px "+l+"px"}; g.qN=function(a){g.W.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Ca("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.cA(this);this.j=new g.SI(this,100);g.H(this,this.events);g.H(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Sc)}; rN=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){rN(a,a.api.hh())}),a.events.T(a.api,"progresssync",a.Fd),a.events.T(a.api,"appresize",a.D)),a.B=NaN,sN(a),a.j.show(200)):(c&&g.bv(a.events),a.j.hide(),a.j.stop())}; sN=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=DD(b,d.width);c=awa(b,e,c);c!==a.B&&(a.B=c,Zva(b,c,d.width),b=Xva(b,c,d.width),pN(a.C,b,d.width,d.height))}; tN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Fa:["ytp-fullerscreen-edu-text"],oa:"Scroll for details"},{G:"div",Fa:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.j=new g.SI(this,250,void 0,100);this.C=this.u=!1;a.Ab(this.element,this,61214);this.B=b;g.H(this,this.j);this.T(a, "fullscreentoggled",this.Ja);this.T(a,"presentingplayerstatechange",this.Ja);this.Oa("click",this.onClick);this.Ja()}; g.uN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}"},oa:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.j=g.jM(this.u.lc(),this.element);this.B=new g.L(this.RT,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.ij);this.T(a,"presentingplayerstatechange",this.Ja);this.Oa("click",this.onClick);g.Wu()&&(b=this.I.bb(),this.T(b,spa(),this.OG),this.T(b,Zu(document),this.Sm));a.V().Wa||a.V().J||this.disable();a.Ab(this.element,this, 139117);this.Ja();this.ij(a.isFullscreen())}; vN=function(a,b,c){nN.call(this,a,b,c,"timedMarkerCueRange");this.T(a,g.Fw("timedMarkerCueRange"),this.Pb)}; wN=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[eAa()]});this.I=a;this.visible=!1;this.Oa("click",this.onClick);this.T(a,"fullscreentoggled",this.Ja);this.La("title",ML(a,"Miniplayer","i"));g.Bf(this,g.jM(b.lc(),this.element));a.Ab(this.element,this,62946);this.Ja()}; xN=function(a,b,c){g.W.call(this,{G:"button",Fa:["ytp-multicam-button","ytp-button"],W:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z", fill:"#fff"}}]}]});var d=this;this.I=a;this.j=!1;this.u=new g.L(this.B,400,this);this.tooltip=b.lc();nM(this.tooltip);g.H(this,this.u);this.Oa("click",function(){WL(c,d.element,!1)}); this.T(a,"presentingplayerstatechange",function(){d.Ja(!1)}); this.T(a,"videodatachange",this.onVideoDataChange);this.Ja(!0);g.Bf(this,g.jM(this.tooltip,this.element))}; yN=function(a){g.VL.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["Switch camera",{G:"button",Fa:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.nI()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.cA(this);this.items=this.Ca("ytp-multicam-menu-items");this.j=[];g.H(this,this.B);a=this.Ca("ytp-multicam-menu-close");this.T(a,"click",this.Db);this.hide()}; zN=function(){g.G.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.mp(this.j,null,this);g.H(this,this.delay)}; DDa=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c=l)break}a.u=e}for(;a.thumbnails.length>a.u.length;)e=void 0,null==(e=a.thumbnails.pop())||e.dispose();for(;a.thumbnails.lengthd.length;)c=void 0,null==(c=a.j.pop())||c.dispose();for(;a.j.length=f&&z<=k&&d.push(w)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,t=p.j[q-1];void 0!==t&&0a.ob&&(a.ob=m/f),d=!0)}c++}}return d}; VN=function(a){if(a.D){var b=a.api.getProgressState(),c=a.api.getVideoData();if(a.api.S("web_player_enable_preroll_for_ssdai_killswitch")||!c||!c.enableServerStitchedDai||!c.enablePreroll||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:zE(d))&&b.airingStart&&b.airingEnd?cEa(a,b.airingStart,b.airingEnd):cEa(a,b.seekableStart,b.seekableEnd);d=mJ(c,b.loaded,0);b=mJ(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;WN(a,b,d);e&&XN(a);dEa(a)}}}; cEa=function(a,b,c){return YN(a)?new jJ(Math.max(b,a.Tb.startTimeMs/1E3),Math.min(c,a.Tb.endTimeMs/1E3)):new jJ(b,c)}; $N=function(a,b){var c=lJ(a.B,b.B);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.D-(a.C?3:2)*a.Ha)}; fEa=function(a,b,c,d){b=g.xh(b,0,a.C?60:40);a.N=b;var e=a.Wa;a.Wa=b/(a.C?60:40)*(Math.max(kJ(a.B)/a.D,1)-1)+1;b=a.D*a.Wa;a.xa=g.xh(d*b-c,0,b-a.D);e!==a.Wa&&XN(a)}; XN=function(a){if(1!==a.j.length||ON(a))a.Bd.style.removeProperty("height");else{var b=UN(a),c=-b.u/b.j,d=(-b.u+b.width)/b.j,e=Iba(a.gb),f=0;if(a.N>.2*(a.C?60:40)){for(var k=kJ(a.B)/60*d,l=Math.ceil(kJ(a.B)/60*c);l=f;c--)g.bi(e[c]);a.element.style.height=a.N+(a.C?8:5)+"px";a.ea("height-change",a.N);a.Bd.style.height=a.N+(a.C?20:13)+"px"}e=g.r(Object.keys(a.Pa));for(f=e.next();!f.done;f=e.next())gEa(a,f.value);aO(a);WN(a,a.ma,a.ib)}; UN=function(a){var b=a.Kb.x,c=a.D*a.Wa;b=g.xh(b,0,a.D);a.xe.update(b,a.D,-a.xa,-(c-a.xa-a.D));return a.xe}; bO=function(a){return(a.C?135:90)-(a.C?54:48)}; WN=function(a,b,c){a.ma=b;a.ib=c;var d=UN(a),e=a.B.j,f=lJ(a.B,a.ma),k=g.HF("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.fJ(f,!0),DURATION:g.fJ(e,!0)}),l=NM(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+k:k});e=a.clipStart;f=a.clipEnd;a.Tb&&2!==a.api.getPresentingPlayerType()&&(e=a.Tb.startTimeMs/1E3,f=a.Tb.endTimeMs/1E3);e=mJ(a.B,e,0);l=mJ(a.B,f,1);k=a.api.getVideoData();f=g.xh(b,e,l);c=(null==k?0:g.wE(k))?1:g.xh(c, e,l);b=aEa(a,b,d);g.Dm(a.eg,"transform","translateX("+b+"px)");cO(a,d,e,f,"PLAY_PROGRESS");(null==k?0:zE(k))?(b=a.api.getProgressState().seekableEnd)&&cO(a,d,f,mJ(a.B,b),"LIVE_BUFFER"):cO(a,d,e,c,"LOAD_PROGRESS");if(a.api.S("web_player_heat_map_played_bar")){var m;null!=(m=a.J[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}}; cO=function(a,b,c,d,e){var f=a.j.length,k=b.j-a.Ha*(a.C?3:2),l=c*k;c=ZN(a,l);var m=d*k;k=ZN(a,m);"HOVER_PROGRESS"===e&&(k=ZN(a,b.j*d,!0),m=b.j*d-hEa(a,b.j*d)*(a.C?3:2));b=Math.max(l-iEa(a,c),0);for(d=c;d=a.j.length)return a.D;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; aEa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.r(a.j),k=f.next();!k.done;k=f.next())k=k.value,d>k.startTime&&0e?0:e)+c.u}; hEa=function(a,b){for(var c=a.j.length,d=0,e=g.r(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d}; g.eO=function(a,b,c,d){var e=a.D!==c,f=a.C!==d;a.Pf=b;a.D=c;a.C=d;ON(a)&&null!=(b=a.u)&&(b.J=d);XN(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.SN(a);a.u&&(a.u.K=a.D,f&&ON(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-(a.C?54:48),a.Da.style.height=c+"px",g.Dm(a.va,"transform","translateY("+-d+"px)"),g.Dm(a.Hc,"transform","translateY("+-d+"px)")),SDa(a.u)))}; aO=function(a){var b=!!a.Tb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Tb?(c=a.Tb.startTimeMs/1E3,d=a.Tb.endTimeMs/1E3):(e=c>a.B.u,f=0a.ma);g.O(a.Bd,"ytp-scrubber-button-hover",c===d&&1=this.settingsMenu.tC&&(c.showMiniplayerButton&&!a.V().S("web_player_pip")&&(this.D=new wN(a,b),g.H(this,this.D),this.D.Ba(e.element)),this.Z.Ba(e.element),l.HD||this.Z.hide(),c.ub||(l=new QO(a,b),g.H(this,l),l.Ba(e.element)),c.ib&&(l=new gO(a,b,this.settingsMenu),g.H(this,l),l.Ba(e.element)),c.yk&&(c=new jN(a,b),g.H(this, c),c.Ba(e.element)));g.H(this,this.Ha);this.Ha.Ba(e.element);g.H(this,this.Yd);this.T(a,"appresize",this.xb);this.T(a,"fullscreentoggled",this.xb);this.T(a,"presentingplayerstatechange",this.pD);this.T(a,"videodatachange",this.onVideoDataChange);this.xb()}; zEa=function(a,b){a.I.yb().isCued()||b?b&&(a.ma.hide(),a.ra.hide(),a.muteButton&&a.muteButton.jc(!1),a.C&&a.C.jc(!1),a.D&&a.D.jc(!1),a.B.lc().Ej(a.u.element)):b||(a.ma.show(),a.ra.show(),a.muteButton&&a.muteButton.jc(!0),a.C&&a.C.jc(!0),a.D&&a.D.jc(!0),a.Yj())}; AEa=function(a){var b=a.I.bb().getPlayerSize().width;return Math.max(b-2*aP(a),100)}; aP=function(a){var b=a.B.bf();return 12*(a.I.getVideoData().D?0:b?2:1)}; bP=function(a){var b=a.B.bf()?72:50;a=a.I.V();g.KC(a)&&(b=54,Vua(a)&&(b=62));return b}; cP=function(a,b){fN.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.Ew("suggested_action_button_visible"),function(){c.Ne(!0)}); this.T(this.I,g.Fw("suggested_action_button_visible"),function(){c.Ne(!1)})}; dP=function(a){a.I.jf("suggested_action_button_visible")}; fP=function(a){var b={G:"div",L:eP.SUBTEXT,U:[{G:"a",L:eP.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},oa:"{{channelName}}"}]};a.V().C&&(b={G:"div",L:eP.SUBTEXT,U:[{G:"img",L:eP.CHANNEL_LOGO,W:{src:"{{channelLogoUrl}}",target:a.V().K,"aria-label":"{{channelLogoLabel}}"}},{G:"span",L:eP.CHANNEL_NAME,oa:"{{channelName}}"}]});g.W.call(this,{G:"div",L:eP.TITLE,U:[{G:"div",L:eP.TEXT,U:[{G:"a",Fa:[eP.LINK,eP.SESSIONLINK],W:{target:a.V().K,href:"{{url}}","data-sessionlink":"feature=player-title", tabIndex:"{{channelTitleFocusable}}"},oa:"{{title}}"},b]}]});this.api=a;this.j=null;this.link=this.Ca(eP.LINK);a.Ab(this.element,this,23851);this.T(a,"videodatachange",this.Ja);this.T(a,"videoplayerreset",this.Ja);this.Ja()}; BEa=function(a){a.La("channelLink","");a.La("channelName","");a.La("channelTitleFocusable","-1")}; g.gP=function(a,b){g.W.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",W:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path", W:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",oa:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",oa:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",oa:"{{duration}}"}]}]});var c=this;this.api=a;this.Da=b;this.env=this.api.V();this.xa=this.env.isMobile;this.bg=this.Ca("ytp-tooltip-bg");this.image=this.Ca("ytp-tooltip-image");this.text=this.Ca("ytp-tooltip-text"); this.title=this.Ca("ytp-tooltip-title");this.X=function(d){(d=mu(d))&&g.di(c.u,d)||c.Ek()}; this.C=function(d){3===c.type&&c.Ek();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.X),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.X),CEa(c,d,2))}; this.Z=function(){c.Ek()}; this.u=null;this.D=new g.SI(this,100);this.type=null;this.N=!1;this.j=null;this.B=NaN;this.J="";this.qD=this.api.bb().getPlayerSize().width;this.K=!0;this.scale=1;this.ma=new g.L(this.IV,250,this);this.va=new g.L(this.Ek,5E3,this);g.H(this,this.D);g.H(this,this.ma);g.H(this,this.va);gC&&(a=this.Ca("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))}; nM=function(a){a.element.setAttribute("aria-live","polite")}; yEa=function(a,b){if(null!=a.type)if(b)switch(a.type){case 3:case 2:hP(a);a.D.show();break;default:a.D.show()}else a.D.hide();a.K=b}; FEa=function(a,b,c,d,e,f,k,l){if(!a.xa||a.env.J){3===a.type&&a.Ek();1!==a.type&&(g.tp(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.j&&a.j.dispose(),a.j=a.api.hh(),a.j&&a.j.subscribe("l",a.uO,a));a.update({text:d,title:null!=k?k:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!k);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.j&&(d=DD(a.j,160*a.scale),a.env.S("web_l3_storyboard")&&4===a.j.levels.length&&(d=a.j.levels.length-1),d=awa(a.j,d,c));DEa(a,d);if(l)switch(c=g.Om(a.element).width, l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign="center"}EEa(a,!!e,b,f)}}; g.iP=function(a){1===a.type&&a.Ek()}; g.jM=function(a,b){if(a.xa)return function(){}; b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Ek();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}}; IM=function(a,b,c){if(a.type)if(3===a.type)a.Ek();else return;CEa(a,b,3,c)}; CEa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.Cs("showElementTooltip called with non-element.",b.toString()),g.S(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.N=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));g.tp(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",!!b);a.type= c;a.api.addEventListener("appresize",a.Z);a.K&&(hP(a),a.D.show(0))}}; hP=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.N){var c=a.u;a.La("text",b);var d=c.getAttribute("data-duration");a.update({title:a.J,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,k=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=k+"px "+l+"px";g.vp(a.element,["ytp-text-detail","ytp-preview"]); g.O(a.element,"ytp-has-duration",!!d)}else a.La("text",a.J),g.xp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);EEa(a,!!b)}; EEa=function(a,b,c,d){var e=Math.min(a.qD,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Da.gr(a.element,a.u,c,1===a.type,d);a.element.style.top?g.M(a.element,"ytp-bottom"):a.element.style.bottom&&g.M(a.element,"ytp-top");3===a.type&&a.va.start()}; JM=function(a){a.u&&!a.N&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&hP(a))}; DEa=function(a,b){g.O(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=Xva(a.j,a.B,b);pN(a.bg,d,b,c,!0);a.ma.start()}}; GEa=function(a){var b=a.u;3===a.type&&a.va.stop();a.api.removeEventListener("appresize",a.Z);a.N||b.setAttribute("title",a.J);a.J="";a.u=null}; g.jP=function(a,b){g.W.call(this,{G:"button",Fa:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.kC(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",oa:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",oa:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.lc();nM(this.tooltip);a.Ab(this.element,this,28665);this.Oa("click",this.onClick,this);this.T(a,"videoplayerreset",this.tS); this.T(a,"appresize",this.oz);this.T(a,"videodatachange",this.oz);this.T(a,"presentingplayerstatechange",this.oz);this.oz();a=this.I.V();var c=g.aw("yt-player-watch-later-pending");a.j&&c?(Rta(),HEa(this)):this.Ja(2);g.O(this.element,"ytp-show-watch-later-title",g.kC(a));g.Bf(this,g.jM(b.lc(),this.element))}; IEa=function(a,b){g.sJ(function(){Rta({videoId:b});window.location.reload()},"wl_button",g.FC(a.I.V()))}; HEa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ja(3);var b=a.I.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.ll(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ja(2);a.I.V().B&&a.I.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ja(1);a.I.V().isMobile&&IM(a.tooltip,a.element);a.I.V().B&&a.I.Na("WATCH_LATER_VIDEO_ADDED")}; FJ(c,b).then(d,function(){a.isRequestPending=!1;JEa(a,"An error occurred. Please try again later.")})}}; JEa=function(a,b){a.Ja(4,b);a.I.V().B&&a.I.Na("WATCH_LATER_ERROR",b)}; KEa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=KL();break;case 1:d=kI();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=c.S("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1", viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.La("icon",d);a.icon=b}}; kP=function(a){g.ZL.call(this,a);var b=this;this.QA=(this.Eq=g.kC(this.api.V()))&&(this.api.V().isMobile||cs()||as());this.vE=48;this.wE=69;this.al=null;this.Vo=[];this.xc=new g.eM(this.api);this.xw=this.api.S("web_player_deprecate_double_tap_ux")?new KM:new LM(this.api);this.gi=new g.W({G:"div",L:"ytp-chrome-top"});this.My=[];this.tooltip=new g.gP(this.api,this);this.backButton=this.Zt=null;this.channelAvatar=new pM(this.api,this);this.title=new fP(this.api,this);this.Sg=new g.dI({G:"div",L:"ytp-chrome-top-buttons"}); this.yg=this.shareButton=this.Dh=null;this.Hi=new iM(this.api,this,this.gi.element);this.overflowButton=this.rg=null;this.Lf="1"===this.api.V().controlsType?new $O(this.api,this,this.Id):null;this.contextMenu=new g.GM(this.api,this,this.xc);this.mE=!1;this.jA=new g.W({G:"div",W:{tabindex:"0"}});this.iA=new g.W({G:"div",W:{tabindex:"0"}});this.Wx=null;this.sG=this.Vz=!1;var c=a.bb(),d=a.V(),e=a.getVideoData();this.Eq&&(g.M(a.getRootNode(),"ytp-embed"),g.M(a.getRootNode(),"ytp-embed-playlist"),this.QA&& (g.M(a.getRootNode(),"ytp-embed-overlays-autohide"),g.M(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.vE=60,this.wE=89);this.api.V().isMobile&&(g.M(a.getRootNode(),"ytp-mobile"),this.api.V().J&&g.M(a.getRootNode(),"ytp-embed-mobile-exp"));this.Ag=e&&e.Ag;g.H(this,this.xc);g.XK(a,this.xc.element,4);g.H(this,this.xw);g.XK(a,this.xw.element,4);e=new g.W({G:"div",L:"ytp-gradient-top"});g.H(this,e);g.XK(a,e.element,1);this.uI=new g.SI(e,250,!0,100);g.H(this,this.uI);g.H(this,this.gi);g.XK(a, this.gi.element,1);this.tI=new g.SI(this.gi,250,!0,100);g.H(this,this.tI);g.H(this,this.tooltip);g.XK(a,this.tooltip.element,4);var f=new WM(a);g.H(this,f);g.XK(a,f.element,5);f.subscribe("show",function(l){b.Tn(f,l)}); this.My.push(f);this.Zt=new XM(a,this,f);g.H(this,this.Zt);d.showBackButton&&(this.backButton=new dM(a),g.H(this,this.backButton),this.backButton.Ba(this.gi.element));this.Eq||this.Zt.Ba(this.gi.element);this.channelAvatar.Ba(this.gi.element);g.H(this,this.channelAvatar);g.H(this,this.title);this.title.Ba(this.gi.element);g.H(this,this.Sg);this.Sg.Ba(this.gi.element);d.C||(this.Dh=new g.jP(a,this),g.H(this,this.Dh),this.Dh.Ba(this.Sg.element));var k=new g.cN(a,this);g.H(this,k);g.XK(a,k.element,5); k.subscribe("show",function(l){b.Tn(k,l)}); this.My.push(k);d.C||(this.shareButton=new g.bN(a,this,k),g.H(this,this.shareButton),this.shareButton.Ba(this.Sg.element),this.yg=new g.HM(a,this),g.H(this,this.yg),this.yg.Ba(this.Sg.element));d.Kk&&(e=new iN(a),g.H(this,e),g.XK(a,e.element,4));this.Eq&&this.Zt.Ba(this.Sg.element);g.H(this,this.Hi);this.Hi.Ba(this.Sg.element);d.C||(e=new kM(a,this,this.Hi),g.H(this,e),e.Ba(this.Sg.element));this.rg=new TM(a,this);g.H(this,this.rg);g.XK(a,this.rg.element,5);this.rg.subscribe("show",function(){b.Tn(b.rg, b.rg.jg())}); this.My.push(this.rg);this.overflowButton=new SM(a,this,this.rg);g.H(this,this.overflowButton);this.overflowButton.Ba(this.Sg.element);this.Lf&&g.H(this,this.Lf);"3"===d.controlsType&&(e=new aN(a,this),g.H(this,e),g.XK(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.HQ,this);e=new nJ(a,new cM(a));g.H(this,e);g.XK(a,e.element,4);this.jA.Oa("focus",this.DU,this);g.H(this,this.jA);this.iA.Oa("focus",this.EU,this);g.H(this,this.iA);(this.Lm=d.le?null:new g.PM(a,c,this.contextMenu, this.Id,this.xc,this.xw,function(){return b.fl()}))&&g.H(this,this.Lm); this.Eq||(this.SP=new gN(this.api,this),g.H(this,this.SP),g.XK(a,this.SP.element,4));this.eQ=new cP(this.api,this);g.H(this,this.eQ);g.XK(a,this.eQ.element,4);this.Uo.push(this.xc.element);this.T(a,"fullscreentoggled",this.Sm);this.T(a,"offlineslatestatechange",function(){b.api.kx()&&EL(b.Id,128,!1)}); this.T(a,"cardstatechange",function(){b.rj()}); this.T(a,"resize",this.WW);this.T(a,"showpromotooltip",this.yX)}; LEa=function(a){var b=a.api.V(),c=g.V(a.api.yb(),128);return b.j&&c&&!a.api.isFullscreen()}; lP=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Gm(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=lP(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexa;a++){var b=g.Yh("VIDEO");b.load();vP.push(new g.DL(b))}}; VEa=function(){this.u=200;this.j=12}; WEa=function(a){var b=new VEa;b.u=g.XA(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.j=g.XA(a.experiments,"html5_gapless_max_played_ranges");return b}; g.wP=function(a,b,c,d){d=void 0===d?!1:d;gH.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; XEa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Kh()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};if(a.j&&((b=b.xd())&&b.isView()&&(b=b.mediaElement),b&&b.wq().length>a.j&&g.dE(e)))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return{msg:"container"};if(g.dE(f)&& g.dE(e))return{msg:"content-protection"};a=c.j[0];e=e.C.j[0];f=a.audio;b=e.audio;return f.sampleRate===b.sampleRate||g.gA?(f.numChannels||2)!==(b.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:a.Yb(),cr:f.sampleRate,ni:e.Yb(),nr:b.sampleRate}}; xP=function(){var a=this;this.j=this.u=iaa;this.promise=new g.ri(function(b,c){a.u=b;a.j=c})}; yP=function(a,b,c,d){g.G.call(this);var e=this;this.policy=a;this.j=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Ml=new xP;this.pk=d-1E3*b.pd();this.Ml.then(void 0,function(){}); this.timeout=new g.L(function(){e.Xe("timeout")},1E4); g.H(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.Qa()}; bFa=function(a){var b,c,d,e,f,k,l,m,n;return g.B(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.Qa();a.timeout.start();b=g.zP.vp("gtfta");return g.A(p,a.Ml,2)}g.zP.Yn(b);c=a.j.xd();if(c.Tf())return a.Xe("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!wA(a.C))return a.Xe("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.uq()!==a.C)return a.Xe("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error|| "")));d=YEa(a);e=d.ZN;f=d.NL;k=d.YN;a.j.Ng(!1,!0);l=ZEa(c,e,k,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.K&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Cq:!0,sI:3,oe:"gapless_pseudo"}),l.play()||Gr());m=c.Mb();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+k;a.u.ya("gapless",m);a.j.ya("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();$Ea(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);$Ea(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce); g.oi(function(){!a.u.getVideoData().gb&&g.qH(a.u.getPlayerState())&&aFa(a.u)}); AP(a,6);a.dispose();return p.return(Promise.resolve())})}; eFa=function(a){if(a.u.getVideoData().C){BP(a.u,a.C);AP(a,3);cFa(a);var b=dFa(a),c=b.RP;b=b.VZ;c.subscribe("updateend",a.us,a);b.subscribe("updateend",a.us,a);a.us(c);a.us(b)}}; cFa=function(a){a.j.unsubscribe("internalvideodatachange",a.Yp,a);a.u.unsubscribe("internalvideodatachange",a.Yp,a);a.j.unsubscribe("mediasourceattached",a.Yp,a);a.u.unsubscribe("statechange",a.Sc,a)}; ZEa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.wP(a,b,c,d)}; AP=function(a,b){a.Qa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Ml.resolve(void 0))}; YEa=function(a){var b=a.j.xd();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:CP(a.j,!0);c=Math.min(a.pk/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Kh()+d;return{iU:b,ZN:a,NL:c,YN:Infinity}}; dFa=function(a){return{RP:a.B.j.Hd,VZ:a.B.u.Hd}}; DP=function(a){g.G.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.K=!1;this.C=null;this.N=WEa(this.app.V());this.B=null;this.J=function(){g.oi(function(){fFa(b)})}}; gFa=function(a,b,c,d){d=void 0===d?0:d;a.Qa();a.Kt()||EP(a);a.C=new xP;a.j=b;var e=c,f=a.app.Kc(),k=f.getVideoData().isLivePlayback?Infinity:1E3*CP(f,!0);e>k&&(e=k-a.N.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.u=f,f=e,e=a.u,a.app.Ta.addEventListener(g.Ew("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.Cw(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().j;if(d&&e&&a.u){k=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/ 1E3,CP(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),k=Math.min(d,CP(b)+l));f=Hta(e,k)||d;f!==d&&a.j.ya("qvaln",{st:d,at:f,rm:l,ct:k})}b=f;d=a.j;d.getVideoData().kd=!0;d.getVideoData().Da=!0;g.FP(d,!0);e={};a.u&&(e=g.GP(a.u.Zb.u),f=a.u.getVideoData().clientPlaybackNonce,e={crt:(1E3*e).toFixed(),cpn:f});d.ya("queued",e);0!==b&&d.seekTo(b+.01,{Cq:!0,sI:3,oe:"videoqueuer_queued"});a.B=new yP(a.N,a.app.Kc(),a.j,c);c=a.B;c.Qa();Infinity!==c.status.status&&(AP(c,1),c.j.subscribe("internalvideodatachange", c.Yp,c),c.u.subscribe("internalvideodatachange",c.Yp,c),c.j.subscribe("mediasourceattached",c.Yp,c),c.u.subscribe("statechange",c.Sc,c),c.j.subscribe("newelementrequired",c.AO,c),c.Yp());return a.C}; fFa=function(a){var b,c,d;g.B(function(e){switch(e.j){case 1:if(a.isDisposed())return e.return();a.Qa();if(!a.C||!a.j)return a.Qa(),e.return();a.K&&HP(a.app.Kc(),!0,!1);b=null;if(!a.B){e.Ya(2);break}g.va(e,3);return g.A(e,bFa(a.B),5);case 5:g.wa(e,2);break;case 3:b=c=g.xa(e);case 2:if(!a.j)return a.Qa(),e.return();g.zP.xH("vqsp",function(){IP(a.app,a.j)}); g.zP.xH("vqpv",function(){a.app.playVideo()}); b&&hFa(a.j,b.message);d=a.C;EP(a);return e.return(d.resolve(void 0))}})}; EP=function(a){if(a.u){var b=a.u;a.app.Ta.removeEventListener(g.Ew("vqueued"),a.J);b.removeCueRange(a.D);a.u=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Xe("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.ZK(a.app,1)&&a.j!==a.app.Kc()&&a.j.dispose();a.j=null;a.K=!1}; iFa=function(){var a=Hoa();return!(!a||"visible"===a)}; kFa=function(a){var b=jFa();b&&document.addEventListener(b,a,!1)}; lFa=function(a){var b=jFa();b&&document.removeEventListener(b,a,!1)}; jFa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[eu+"VisibilityState"])return"";a=eu+"visibilitychange"}return a}; JP=function(){g.cv.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Ne()}; kFa(this.C);this.D=this.getVisibilityState(this.Cf(),this.isFullscreen(),this.Se(),this.isInline(),this.It(),this.Et())}; mFa=function(a){this.end=this.start=a}; g.NP=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Y=b;this.Aa=c;this.Ia=new Map;this.gb=new Map;this.Ra=new Map;this.D=new Map;this.B=[];this.J=[];this.u=new Map;this.ub=new Map;this.K=new Map;this.qb=NaN;this.ib=this.Ha=null;this.ob=new g.L(function(){KP(d,d.qb)}); this.events=new g.cA(this);this.isLiveNow=!0;this.Cc=g.XA(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ma=new g.L(function(){d.Z=!0;d.Aa.ya("sdai",{aftimeout:d.Cc});LP(d);d.Xw(!1)},this.Cc); this.Z=!1;this.xa=new Map;this.Xa=[];this.X=null;this.kc=new Set;this.va=[];this.Cb=[];this.Sb=[];this.Kb=[];this.j=void 0;this.Da=0;this.Wa=!0;this.C=!1;this.Pa=[];this.Qb=new Set;this.Wb=new Set;this.Ub=new Set;this.Ii=0;this.N=null;this.Va=new Set;this.Gb=0;this.Rn=this.Fb=!1;this.Aa.getPlayerType();nFa(this.Aa,this);this.ra=WC(this.Y);g.H(this,this.ob);g.H(this,this.events);g.H(this,this.ma);MP(this)||(this.events.T(this.api,g.Ew("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api, g.Fw("serverstitchedcuerange"),this.onCueRangeExit))}; qFa=function(a,b,c,d,e,f,k){var l=oFa(a,e,e+d);a.Y.S("html5_ssdai_log_ad_transition_info")&&a.Aa.ya("sdai",{attl:1,len:(d/1E3).toFixed(3),enter:(e/1E3).toFixed(3),abid:k});a.Z&&a.Aa.ya("sdai",{adaftto:1});var m=a.Y.S("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Aa;f=void 0===f?e+d:f;e===f&&!d&&a.Y.S("html5_allow_zero_duration_ads_on_timeline")&&a.Aa.ya("sdai",{attl0d:1});if(e>f&&(a.Uj("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime(); if(en&&(a.Uj("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;if(m)for(m=g.r(a.J),p=m.next();!p.done;p=m.next()){p=p.value;if(e>=p.Gc&&ep.Gc)return a.Uj("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+ OP(p))),"";if(f===p.Gc)return a.Uj("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+OP(p))),"";e===p.hd&&(n=p)}else m=g.oc(a.J,{hd:e},function(t,w){return t.hd-w.hd}),0<=m&&(n=a.J[m]); if(l&&n)for(m=g.r(a.va.entries()),p=m.next();!p.done;p=m.next()){var q=g.r(p.value);p=q.next().value;q=q.next().value;if(q.identifier===l.identifier){a.va.splice(p,1);break}}else if(l&&a.Y.S("web_player_ss_timeout_skip_ads"))return a.Aa.ya("sdai",{rejectAttl:1}),k&&!Sm(a.Kb,function(t){return t===k})&&(a.Aa.ya("sdai",{rejectAdBreakAttl:1}),a.Kb.push(k)),a.Y.S("web_player_stop_timer_for_timedout_ab_killswitch")||PP(a),""; l="ss_childplayback_"+pFa++;b.cpn||(b.cpn=g.nv(16));m=b.cpn;b=new g.MD(a.Y,b);b.Bc=l;c={Bc:l,playerType:c,durationMs:d,Gc:e,hd:f,cpn:m,videoData:b,errorCount:0};g.sc(a.J,c,function(t,w){return t.Gc-w.Gc}); a.u.set(m,c);a.ub.set(l,c);a.Aa.ya("sdai",{attlDone:f-e});k?c.Rk=k:n?c.Rk=n.Rk:c.Rk=c.cpn;if(e=c.Rk)(d=a.K.get(e))?(d.push(c),g.qc(d,function(t,w){return t.Gc-w.Gc})):a.K.set(e,[c]); a.ma.isActive()&&(a.Z=!1,a.ma.stop(),LP(a),a.Xw(!0));a.Qa();return l}; QP=function(a,b,c){return a.Y.experiments.kb("html5_ssdai_log_ad_transition_info")&&c?{ssvc:b,cpn:c.cpn,vid:c.videoData.videoId}:{ssvc:b}}; rFa=function(a,b,c){return new g.Cw(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; RP=function(a){return{cpn:a.Aa.getVideoData().clientPlaybackNonce,durationMs:0,Gc:0,playerType:1,hd:0,videoData:a.Aa.getVideoData(),errorCount:0}}; TP=function(a,b,c){var d=a.C,e=RP(a),f=b.vf-c.vf;.5d?-1*(d+2):d;return 0<=d&&(a=a.J[d],a.hd>=c)?{jm:a,Tq:b}:{jm:void 0,Tq:b}}; VP=function(a,b){var c="";MP(a)?(c=b/1E3-a.Cm(),c=a.Aa.wt(c)):(b=sFa(a,b))&&(c=b.getId());return c?a.u.get(c):void 0}; sFa=function(a,b){a=g.r(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; KP=function(a,b){var c=a.ib||a.api.Kc().getPlayerState();WP(a,!0);var d=b;a.Y.S("web_player_ssdai_seek_without_offset_killswitch")&&(d=UP(a,b).Tq);a.Aa.seekTo(d);a=a.api.Kc();b=a.getPlayerState();g.qH(c)&&!g.qH(b)?a.playVideo():g.V(c,4)&&!g.V(b,4)&&a.pauseVideo()}; WP=function(a,b){a.qb=NaN;a.ob.stop();a.Ha&&b&&XP(a.Ha);a.ib=null;a.Ha=null}; YP=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Qa();for(var d=b,e=c,f=[],k=g.r(a.J),l=k.next();!l.done;l=k.next())l=l.value,(l.Gce)&&f.push(l);a.J=f;d=b;e=c;f=g.r(a.D.values());for(k=f.next();!k.done;k=f.next())k=k.value,k.start>=d&&k.end<=e&&(a.Aa.removeCueRange(k),a.D.delete(k.getId()),a.Aa.ya("sdai",{rmAdCR:1}));d=UP(a,b/1E3);b=d.jm;d=d.Tq;b&&(d=1E3*d-b.Gc,e=b.Gc+d,a.Qa(),b.durationMs=d,b.hd=e,tFa(a,b));(b=UP(a,c/1E3).jm)&&a.Uj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+ OP(b)+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}; uFa=function(a){a.Y.S("web_player_ss_timeline_manager_reset_all_killswitch")||(a.Ia.clear(),a.gb.clear(),a.Ra.clear(),a.D.clear(),a.B=[],a.J=[],a.u.clear(),a.ub.clear(),a.K.clear(),a.xa.clear(),a.Xa=[],a.X=null,a.kc.clear(),a.va=[],a.Cb=[],a.Sb=[],a.Kb=[],a.Pa=[],a.Qb.clear(),a.Wb.clear(),a.Ub.clear(),a.Va.clear(),a.isLiveNow=!0,a.Z=!1,a.j=void 0,a.Da=0,a.Wa=!0,a.C=!1,a.Ii=0,a.N=null,a.Gb=0,a.Fb=!1,a.Rn=!1)}; tFa=function(a,b){var c=a.D.get(b.cpn);if(c){a=g.r(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Gc+b.durationMs:d.end===c.start&&(d.end=b.Gc);c.start=b.Gc;c.end=b.Gc+b.durationMs}}; OP=function(a){var b;return"playback_timelinePlaybackId_"+a.Bc+"_video_id_"+(null==(b=a.videoData)?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Gc+"_parentReturnTimeMs_"+a.hd}; ZP=function(a,b,c){c=a.xa.get(c);c||(b+=a.Cm(),c=UP(a,b,1).jm);return c}; $P=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;vFa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.Aa.removeCueRange(e);if(a.Pa.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else vFa(a,b,c)}; vFa=function(a,b,c){b=rFa(b,c);c=!0;g.sc(a.B,b,function(k,l){return k.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Aa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.Aa.addCueRange(b),b=a.Aa.Cw("serverstitchedcuerange",36E5),b=g.r(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())}; aQ=function(a,b,c){if(void 0===c||!c){c=g.r(a.Xa);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Xa.push(new mFa(b))}}; g.wFa=function(a,b){a=g.r(a.Xa);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; xFa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; yFa=function(a,b,c){var d=0;a=a.K.get(c);if(!a)return-1;a=g.r(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; zFa=function(a,b){var c=[];a=a.K.get(b);if(!a)return[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c}; AFa=function(a,b){var c=0;a=a.K.get(b);if(!a)return 0;a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.hd!==b.Gc&&c++;return c}; BFa=function(a,b,c){var d=!1;if(c&&(c=a.K.get(c))){c=g.r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.hd!==e.Gc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Wb.has(e)&&(a.Aa.ya("sdai",{decoratedAd:e}),a.Wb.add(e)))}}; LP=function(a){a.ra&&a.Aa.ya("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Gb)+"_isTimeout_"+a.Z})}; oFa=function(a,b,c){if(a.va.length)for(var d={},e=g.r(a.va),f=e.next();!f.done;d={Bp:d.Bp},f=e.next()){d.Bp=f.value;f=1E3*d.Bp.startSecs;var k=1E3*d.Bp.durationSecs+f;if(b>f&&bf&&cf)return cQ(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),k,l),"";var n=1E3*m.getMinSeekableTime();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.pd(),cQ(a,m,k,l),"";n=null;for(var p=g.r(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Gc&&eq.Gc)return cQ(a,"overlappingReturn",k,l),a.Qa(),"";if(f===q.Gc)return cQ(a,"outOfOrder",k,l),a.Qa(),"";e===q.hd&&(n=q)}k="cs_childplayback_"+DFa++;l={Cd:dQ(d,!0),pk:Infinity,target:null};var t={Bc:k,playerVars:b,playerType:c,durationMs:d,Gc:e,hd:f,Vn:l};a.u=a.u.concat(t).sort(function(y,z){return y.Gc-z.Gc}); n?EFa(a,n,{Cd:dQ(n.durationMs,!0),pk:a.Y.S("timeline_manager_transition_killswitch")?Infinity:n.Vn.pk,target:t}):(b={Cd:dQ(e,!1),pk:e,target:t},a.J.set(b.Cd,b),a.Qa(),m.addCueRange(b.Cd));b=a.Y.S("html5_gapless_preloading");if(a.j===a.api.Kc()&&(m=1E3*m.getCurrentTime(),m>=t.Gc&&mb)break;if(f>b)return{jm:d,Tq:b-e};c=f-d.hd/1E3}return{jm:null,Tq:b-c}}; CFa=function(a,b){var c=a.D||a.api.Kc().getPlayerState();hQ(a,!0);b=a.Y.S("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.j.Jj();var d=gQ(a,b);b=d.jm;d=d.Tq;var e=b&&!eQ(a,b)||!b&&a.j!==a.api.Kc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||fQ(a);a.Qa();b?(a.Qa(),FFa(a,b,d,c)):(a.Qa(),iQ(a,d,c))}; iQ=function(a,b,c){var d=a.j,e=a.api.Kc();d!==e&&a.api.Wm();d.seekTo(b,{oe:"application_timelinemanager"});KFa(a,c)}; FFa=function(a,b,c,d){var e=eQ(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.MD(a.Y,b.playerVars);f.Bc=b.Bc;a.api.Qo(f,b.playerType)}f=a.api.Kc();e||(b=b.Vn,a.Qa(),f.addCueRange(b.Cd));f.seekTo(c,{oe:"application_timelinemanager"});KFa(a,d)}; KFa=function(a,b){a=a.api.Kc();var c=a.getPlayerState();g.qH(b)&&!g.qH(c)?a.playVideo():g.V(b,4)&&!g.V(c,4)&&a.pauseVideo()}; hQ=function(a,b){a.X=NaN;a.N.stop();a.C&&b&&XP(a.C);a.D=null;a.C=null}; eQ=function(a,b){a=a.api.Kc();return!!a&&a.getVideoData().Bc===b.Bc}; LFa=function(a){var b=a.u.find(function(e){return eQ(a,e)}); if(b){var c=a.api.Kc();fQ(a);var d=new g.kH(8);b=JFa(a,b)/1E3;iQ(a,b,d);c.ya("forceParentTransition",{childPlayback:1});a.j.ya("forceParentTransition",{parentPlayback:1})}}; jQ=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.Qa();for(var d=b,e=c,f=g.r(a.J),k=f.next();!k.done;k=f.next()){var l=g.r(k.value);k=l.next().value;l=l.next().value;l.pk>=d&&l.target&&l.target.hd<=e&&(a.j.removeCueRange(k),a.J.delete(k))}d=b;e=c;f=[];k=g.r(a.u);for(l=k.next();!l.done;l=k.next())if(l=l.value,l.Gc>=d&&l.hd<=e){var m=a;m.K===l&&fQ(m);eQ(m,l)&&m.api.Wm()}else f.push(l);a.u=f;d=gQ(a,b/1E3);b=d.jm;d=d.Tq;b&&(d*=1E3,MFa(a,b,d,b.hd===b.Gc+b.durationMs?b.Gc+d:b.hd));(b=gQ(a, c/1E3).jm)&&cQ(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Bc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Gc+" parentReturnTimeMs="+b.hd+"}.Child playbacks can only have duration updated not their start."))}; MFa=function(a,b,c,d){a.Qa();b.durationMs=c;b.hd=d;d={Cd:dQ(c,!0),pk:c,target:null};EFa(a,b,d);eQ(a,b)&&1E3*a.api.Kc().getCurrentTime()>c&&(b=JFa(a,b)/1E3,c=a.api.Kc().getPlayerState(),iQ(a,b,c))}; cQ=function(a,b,c,d){a.j.ya("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; OFa=function(a){a&&"web"!==a&&NFa.includes(a)}; mQ=function(a,b){g.G.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.L(function(){kQ(c);lQ(c)}); g.H(this,this.j)}; PFa=function(a){var b;if(b=void 0===b?!1:b)for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())nQ(a,d.value,b);a.data=[];lQ(a)}; kQ=function(a){var b=(0,g.R)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)}; TFa=function(a,b){ppa(a,"version",b)}; yQ=function(a){g.W.call(this,{G:"div",Fa:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.xQ.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.lw=this.Ca(g.xQ.VIDEO_CONTAINER);this.du=new g.Am(0,0,0,0);this.Eb=null;this.PB=new g.Am(0,0,0,0);this.xF=this.vG=this.uG=NaN;this.HA=this.MB=this.oH=this.xL=!1;this.AE=NaN;this.YF=!1;this.sx=null;this.NG=function(){b.element.focus()}; this.AB=function(){b.app.Ta.ea("playerUnderlayVisibilityChange","visible");b.Eb.classList.remove(g.xQ.VIDEO_CONTAINER_TRANSITIONING);b.Eb.removeEventListener(UFa,b.AB);b.Eb.removeEventListener("transitioncancel",b.AB)}; var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,k,l){c.apply(b.element,[f,k,l])}; this.removeEventListener=function(f,k,l){d.apply(b.element,[f,k,l])}; var e=a.V();e.transparentBackground&&this.Gn("ytp-transparent");"0"===e.controlsType&&this.Gn("ytp-hide-controls");g.M(this.element,"ytp-exp-bottom-control-flexbox");e.S("html5_player_bottom_linear_gradient")&&g.M(this.element,"ytp-linear-gradient-bottom-experiment");Vua(e)&&g.M(this.element,"ytp-larger-tap-buttons");e.S("enable_new_paid_product_placement")&&!g.NC(e)&&g.M(this.element,"ytp-exp-ppp-update");PC(e)&&g.M(this.element,"ytp-exp-hybrid-controls");TFa(this.element,VFa(a));this.TP=!1;this.Ew= new g.Dh(NaN,NaN);WFa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; WFa=function(a){function b(){a.Eb&&zQ(a);AQ(a)!==a.YF&&a.resize()} function c(k,l){a.zt(k,l)} function d(k){k.getVideoData()&&a.updateVideoData(k.getVideoData())} function e(){a.PB=new g.Am(0,0,0,0);a.du=new g.Am(0,0,0,0)} var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Bf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; XFa=function(a){var b=g.ZK(a.app);if(b=b?b.getVideoData():null){if(g.kE(b)||g.lE(b)||g.nE(b))return 16/9;if(VD(b)&&b.C.j)return a=b.C.videoInfos[0].video,BQ(a.width,a.height)}return(a=a.Eb)?BQ(a.videoWidth,a.videoHeight):16/9}; YFa=function(a,b,c,d){var e=c,f=BQ(b.width,b.height);a.xL?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(CQ*b-a)||1>Math.abs(CQ/a-b)?CQ:a/b}; AQ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.ZK(a.app);if(!b||b.ul())return!1;var c=a.app.Ta.yb();a=!g.V(c,2)||!a.app.V().S("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Da;b=g.V(c,1024);return c&&a&&!b&&!c.isCued()}; zQ=function(a){var b="3"===a.app.V().controlsType&&!a.HA&&AQ(a)&&!a.app.yx||!1;a.Eb.controls=b;a.Eb.tabIndex=b?0:-1;b?a.Eb.removeEventListener("focus",a.NG):a.app.V().S("disable_focus_redirect")||a.Eb.addEventListener("focus",a.NG)}; ZFa=function(a){var b=a.Eg(),c=1,d=!1,e=YFa(a,b,a.getVideoAspectRatio()),f=a.app.V().S("enable_desktop_player_underlay"),k=Zr(),l=g.XA(a.app.V().experiments,"player_underlay_min_player_width");l=f&&a.oH&&a.getPlayerSize().width>l;if(AQ(a)){var m=XFa(a);var n=isNaN(m)||g.ht||DQ&&g.Ks||l;$r&&!g.Cc(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().S("place_shrunken_video_on_left_of_player"),m=.02*a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Am(n,0,b.width, b.height)):n=new g.Am(0,0,b.width,b.height):(c=e.aspectRatio/m,n=new g.Am((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Ks&&(m=n.width-b.height*m,0b)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return b=k&&a.Ba.seekCount?(a.seekCount++,a.Qa(),a.Ua.ya("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.B,actual:k,duration:l,isVideo:c}),a.seek(a.B)):(a.Qa(),a.Ua.ya("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.B,actual:k}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ua.Aa.seekTo(k+.1,{Cq:!0,oe:"chunkSelectorSynchronizeMedia", Zp:!0})))}})}; kGa=function(a,b,c){if(!a.u)return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.getSegmentNumberForTime(a.B);return(Fz(c,a.j.Ie)||b.Ma===a.j.Ie)&&dc||c===a.B)&&!isNaN(a.C)?a.C:b}; rGa=function(a,b,c,d){qGa(a.J,d,c,b);qGa(a.va,d,c,b);JA(a.N,d,!0);JA(a.N,d,!1);a.ya("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})}; sGa=function(a,b){if(a.j){var c=a.j.Jd.durationSecs-(b.startTime+a.K-a.j.Jd.startSecs);0>=c||(c=new uw(a.j.Jd.startSecs-(isNaN(a.K)?0:a.K),c,a.j.Jd.context,a.j.Jd.identifier,"stop",a.j.Jd.Hu+1E3*b.duration),a.ya("cuepointdiscontinuity",{segNum:b.Ma}),RQ(a,c,b.Ma))}}; SQ=function(a,b,c){a.u!==b&&(a.ya("sdai",{setsst:b,old:a.u,r:c}),a.u=b)}; tGa=function(a,b,c,d){(void 0===d?0:d)?SQ(a,1,"sk2h"):0b)return!0;a.ma.clear()}return!1}; CGa=function(a,b){return new TQ(a.K,a.u,b||a.j.reason)}; yGa=function(a){a.Ha?a.Ha=!1:a.X=(0,g.R)();a.N=!1;return new TQ(a.K,a.u,a.j.reason)}; DGa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],k=f&&Zz(f)&&f.video.j>a.policy.N,l=e<=a.policy.N?Zz(d):Xz(d);if(!f||k||l)c[e]=d}return c}; UQ=function(a,b){a.j=b;var c=a.J.videoInfos;if(!a.j.isLocked()){var d=(0,g.R)();c=g.Bn(c,function(q){if(q.Nb>this.policy.Nb)return!1;var t=this.C.j[q.id],w=t.info.j;return this.policy.gs&&this.Ra.has(w)||this.ma.get(q.id)>d||4=q.video.j}))}c.length||(c=a.J.videoInfos); var e=g.Bn(c,b.C,b),f="m"===b.reason||"s"===b.reason;a.policy.zj&&DQ&&g.Ks&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)})); if(0c.Vy.video.width?(g.ec(e,b),b--):XQ(a,c.Uy)*a.policy.B>XQ(a,c.Vy)&&(g.ec(e,b-1),b--);c=e[e.length-1];a.Va=!!a.u&&!!a.u.info&&a.u.info.j!==c.j;a.D=e;lCa(a.policy,c)}; vGa=function(a,b){b?a.B=a.C.j[b]:(b=(b=g.Zb(a.J.j,function(c){return!!c.Ec&&c.Ec.isDefault}))||a.J.j[0],a.B=a.C.j[b.id]); VQ(a)}; EGa=function(a,b){for(var c=0;c+1d}; VQ=function(a){if(!a.B||!a.policy.u)if(!a.B||!a.B.info.Ec)if(a.B=a.C.j[a.J.j[0].id],1a.j.j:EGa(a,a.B);b&&(a.B=a.C.j[g.Xb(a.J.j).id])}}; WQ=function(a){a.policy.ah&&(a.Da=a.Da||new g.L(function(){a.policy.ah&&a.u&&!ZQ(a)&&1===Math.floor(10*Math.random())?(YQ(a,a.u),a.N=!0):a.Da.start()},6E4),g.op(a.Da)); if(!a.nextVideo||!a.policy.u)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.C.j[a.D[0].id]:a.C.j[g.Xb(a.D).id];else{for(var b=Math.min(a.videoIndex,a.D.length-1),c=KQ(a.ra),d=XQ(a,a.B.info),e=c/a.policy.C-d;0=f);b++);a.nextVideo=a.C.j[a.D[b].id];a.videoIndex!==b&&a.logger.info(function(){var k=a.j;return"Adapt to: "+dta(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+ f.toFixed(0)+", constraint: ["+(k.u+"-"+k.j+", override: "+(k.B+", reason: "+k.reason+"]"))}); a.videoIndex=b}}; wGa=function(a){var b=a.policy.C,c=KQ(a.ra),d=c/b-XQ(a,a.B.info);b=g.$b(a.D,function(e){return XQ(this,e)b&&(b=0);a.videoIndex=b;a.nextVideo=a.C.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+dta(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; xGa=function(a){if(a.Wa.length){var b=a.Wa,c=function(d,e){if("f"===d.info.j||b.includes(hz(d,a.C.isLive,a.Ua.Fg(),a.policy.Xa)))return d;for(var f={},k=0;ka.policy.Wb&&(c*=1.5);return c}; FGa=function(a,b){a=ag(a.C.j,function(c){return c.info.Yb()===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; GGa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(uta(a.C)){for(var c=Math.max(0,a.videoIndex-2);c=d.length)return;if(0>c)throw Error("Missing data");a.B=a.C;a.u=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0gR.length&&gR.push(m)}t= void 0}m=t;if(null!==m){var w=m;break a}}catch(x){}}c+=e}w=null}catch(x){w=null}}if(null!=w){b=g.fe(w,7);null==b||a.Ce||(a.cryptoPeriodIndex=b);b=g.fe(w,10);null!=b&&0=a.j.totalLength)throw Error();return iy(a.j,a.offset++)}; SGa=function(a,b){b=void 0===b?!1:b;var c=jR(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=jR(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+jR(a),d*=128;return b?c:c-d}; lR=function(a,b,c){var d=this;this.Ua=a;this.policy=b;this.J=c;this.logger=new g.oQ("dash");this.u=[];this.j=null;this.ma=-1;this.N=0;this.va=NaN;this.X=0;this.B=NaN;this.Da=this.Ha=0;this.Pa=-1;this.xa=this.C=this.K=this.ra=null;this.Va=this.Ra=NaN;this.D=this.Z=this.Ia=this.Wa=null;this.Xa=!1;this.timestampOffset=0;if(this.policy.u){var e=this.J,f=this.policy.u;this.D=new aR(this.policy,e,function(k,l,m){kR(a,new hR(d.policy.u,2,{Vx:new RGa(f,k,e.info,l,m)}))}); this.D.X.promise.then(function(k){d.D=null;1===k&&kR(a,new hR(d.policy.u,k))},function(k){var l=(k.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); d.logger.info(function(){return"Failed to write to disk: "+l}); d.Ua.ya("dldbwerr",{em:l});TGa(d);kR(a,new hR(d.policy.u,4,{JA:!0}))})}}; UGa=function(a){return a.u.length?a.u[0]:null}; mR=function(a){return a.u.length?a.u[a.u.length-1]:null}; YGa=function(a,b,c){if(a.C){var d=a.C.zb+a.C.u;if(0=a.ma&&0===a.N){var f=a.j.j,k=-1;e=-1;if(c){for(var l=0;l+ 8e&&(k=-1)}else{f=new iR(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=SGa(p,!0),t=SGa(p,!1);var w=q;var x=t}catch(z){x=w=-1}p=w;var y=x;if(!(0k&&(k=n),m))break;163===p&&(k=Math.max(0,k),e=f.getOffset()+y);if(160===p){0>k&&(e=k=f.getOffset()+y);break}f.skip(y)}}0>k&&(e= -1)}if(0>k)break;a.ma=k;a.N=e-k}if(a.ma>d)break;a.ma?(d=WGa(a,a.ma),d.D&&XGa(a,d),VGa(a,b,d),qR(a,d),a.ma=0):a.N&&(d=WGa(a,0>a.N?Infinity:a.N),a.N-=d.j.totalLength,qR(a,d))}}a.j&&a.j.info.Zd&&(qR(a,a.j),a.j=null)}; pR=function(a,b){!b.info.j.Pj()&&0===b.info.zb&&(g.Mz(b.info.j.info)||b.info.j.info.Ce())&&Zsa(b);if(1===b.info.type)try{XGa(a,b),ZGa(a,b)}catch(d){g.S(d);var c=tz(b.info);c.hms="1";a.Ua.handleError("fmt.unparseable",c||{},1)}b.info.j.CF(b);a.D&&KGa(a.D,b)}; OQ=function(a){a.u=[];oR(a);TGa(a)}; TGa=function(a){var b;null==(b=a.D)||b.dispose();a.D=null}; $Ga=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; rR=function(a){return g.Kl(a.u,function(b){return b.info})}; WGa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=Ssa(c,b);a.j=c[1];return c[0]}; XGa=function(a,b){var c=Lz(b);if(Yz(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new Ny(c);Py(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.j,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;Xz(d)&&!Yz(d)&&(d=Lz(b),(new Ny(d)).hx(),Ty([408125543,374648427,174,224],21936,d));b.info.j.info.isVideo()&&(d=b.info.j,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.Mz(d.info)?d.B=asa(c):d.info.Ce()&&(d.B=hsa(c))));b.info.j.info.Ce()&& b.info.isVideo()&&(c=Lz(b),(new Ny(c)).hx(),Ty([408125543,374648427,174,224],30320,c)&&Ty([408125543,374648427,174,224],21432,c));if(a.policy.Mv&&b.info.j.info.Ce()){c=Lz(b);var e=new Ny(c);if(Py(e,[408125543,374648427,174,29637])){d=Sy(e,!0);e=e.start+e.j;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=vy(b),b.skip((m-1)*(4+(k?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.ra&&!!a.ra.J.D)if(b=c.info.isVideo())b=Ysa(c),k=a.ra,sR?(l=1/b,b=tR(a,b)>=tR(k)+l):b=a.getDuration()>=k.getDuration(),b=!b;b&&aHa(c)&&(b=a.ra,sR?(l=Ysa(c),k=1/l,l=tR(a,l),b=tR(b)+k-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,$ra(Lz(c),b))}else{k=!1;a.K||(Zsa(c),c.u&&(a.K=c.u,k=!0,Bsa(c.info,c.u),l=c.info.j.info,f=Lz(c),g.Mz(l)?Ly(f,1701671783):l.Ce()&&Ty([408125543],307544935,f)));a:{if(f=l=Nz(c,a.policy.Da))f=c.info.j.info.Ce()&&160===iy(c.j,0);if(f)a.X+=l,a.B=a.policy.Sb?a.B+l:NaN;else{if(a.policy.qr){var n=a.Ua.Zp(Usa(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Sb&&isNaN(a.Ra)){g.Mv(new g.Cs("Missing duration while processing previous chunk",lz(c.info)));nR(a,"m");break a}f= n-a.B;var p=f-a.Da;d=c.info.Ma;var q=a.xa?a.xa.Ma:-1,t=a.Va,w=a.Ra;m=a.policy.Bi&&f>a.policy.Bi;var x=a.policy.xe&&p>a.policy.xe;1E-4m&&d>a.Pa)&&p&&(d=Math.max(.95, Math.min(1.05,(l-(x-f))/l)),$ra(Lz(c),d),d=Nz(c,a.policy.Da),n=l-d,l=d));a.Da=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;Vsa(c,e)?(isNaN(a.va)&&(a.va=e),a.X+=l,a.B=e+l):(l=tz(c.info),l.smst="1",a.Ua.handleError("fmt.unparseable",l||{},1))}}a.xa=c.info;a.Ra=Xsa(c);0<=c.C&&(a.Va=c.C);if(k&&a.K){k=bHa(a,!0);uz(c.info,k);a.j&&uz(a.j.info,k);b=g.r(b.info.j);for(l=b.next();!l.done;l=b.next())uz(l.value,k);(c.info.Zd||a.j&&a.j.info.Zd)&&6!==c.info.type||(a.Z=k,b=a.Ua,b.j.isManifestless&&cHa(b,k,null, !!a.J.info.video,b.rk),a.policy.Oc||dHa(a))}}ZGa(a,c);a.timestampOffset&&Wsa(c,a.timestampOffset)}; qR=function(a,b){if(b.info.Zd){a.Wa=b.info;if(a.K){var c=a.K,d=bHa(a,!1),e=null;if(a.K.ax()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=c.data["Stitched-Video-Cpn"]?c.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],k=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.r(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())k.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m= g.r(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new OGa(e,f,k,l,g.Xra(c))}a.Ua.VG(a.J,d,e);a.Z||a.policy.Oc||dHa(a);a.Z=null}oR(a)}a.D&&KGa(a.D,b);if(c=mR(a))if(c=Tsa(c,b,a.policy.ej)){a.u.pop();a.u.push(c);return}a.u.push(b)}; oR=function(a){a.j=null;a.ma=-1;a.N=0;a.K=null;a.va=NaN;a.X=0;a.Z=null}; nR=function(a,b){b={rst4disc:b,cd:a.Da.toFixed(3),sq:a.xa?a.xa.Ma:-1};a.B=NaN;a.Da=0;a.Pa=-1;a.xa=null;a.Va=NaN;a.Ra=NaN;a.Ia=null;a.Ua.ya("mdstm",b)}; ZGa=function(a,b){if(a.J.info.Rd){if(b.info.j.info.Ce()){var c=new Ny(Lz(b));if(Py(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Sy(c,!0);c=16!==d?null:Xy(c,d)}else c=null;d="webm"}else b.info.K=MGa(Lz(b)),c=NGa(b.info.K),d="cenc";c&&c.length&&(c=new fR(c,d),c.Ce=b.info.j.info.Ce(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.zk&&b.u&&b.u.C&&(c.j=b.u.C),a.Ua.Tt(c))}}; dHa=function(a){var b=a.K,c=Vra(b);c&&(c.startSecs+=a.va,a.Ua.UG(a.J,c,b.j,b.ax()))}; bHa=function(a,b){var c,d=a.K;if(c=Vra(d))c.startSecs+=a.va;return new ay(d.j,a.va,b?d.mj:a.X,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)}; aHa=function(a){return a.info.j.Pj()&&a.info.Ma===a.info.j.index.getLastSegmentNumber()}; tR=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.J.D&&b&&(b+=a.J.D.j);return b+a.getDuration()}; eHa=function(a,b){0>b||(a.u.forEach(function(c){Wsa(c,b)}),a.timestampOffset=b)}; uR=function(a,b){this.info=a;this.callback=b;this.state=1;this.N=!1;this.C=0;this.D=!1;this.j=this.lastError=null}; fHa=function(a){return g.Ll(a.info.j,function(b){return 3===b.type})}; vR=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)}; wR=function(a,b){b&&a.state=b&&(e.u.pop(),e.B-=Nz(l,e.policy.Da),f=l.info)}f&&(e.C=0c?PQ(a,d):a.u=a.j.An(b-1,!1).j[0]}; KR=function(a,b){var c;for(c=0;c=a.X:c}; sHa=function(a){var b;return FR(a)||!(null==(b=mR(a.C))||!oz(b.info))}; ER=function(a){var b=[],c=BR(a);c&&b.push(c);b=g.hc(b,rR(a.C));c=g.r(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.r(d.info.j),k=f.next();!k.done;e={Vr:e.Vr},k=f.next())e.Vr=k.value,d.N&&(b=g.Bn(b,function(l){return function(m){return!zsa(m,l.Vr)}}(e))),(qz(e.Vr)||4===e.Vr.type)&&b.push(e.Vr)}a.u&&!wsa(a.u,g.Xb(b),a.u.j.Pj())&&b.push(a.u); return b}; pHa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:pHa(a,c?b:0)?a[b].startTime:NaN}; LR=function(a){return!(!a.u||a.u.j===a.j)}; tHa=function(a){return LR(a)&&a.j.df()&&a.u.j.info.Nbb&&a.Ce.policy.j&&(e.callbacks.Wq(f,e.B),e.D=f)},function(){},d.body||null)}; zHa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=jz(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new cy;yHa(this).then(function(){c.callbacks.fp()},function(d){c.error=""+d||"unknown_err"; c.callbacks.fp()})}; yHa=function(a){var b,c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j){a.status=200;b=a.j.get("docid");c=Hh(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new HGa(a.j.get("ck"),a.j.get("civ")));k=a.range;l=Math.floor(k.start/e);m=Math.floor(k.end/e);n=l}if(5!=z.j)return n<=m?g.A(z,Bva(b,c,d,n,f),5):z.Ya(0);p=z.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*e; w=Math.max(0,k.start-q);x=Math.min(k.end+1,t)-(w+q);y=new Uint8Array(p.buffer,w,x);a.u.append(y);a.loaded+=x;a.loadede?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=RR(a)?d+b:d+Math.max(b,c);a.X=d}; TR=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; VR=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.X=d;this.status=0;this.response=void 0;this.N=this.u=0;this.J=this.K=!1;this.errorMessage="";this.ma=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.Gl=f.body.getReader(),e.isDisposed()?e.Gl.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Vt(),JHa(e)); else e.onDone()}; this.Z=function(f){var k=(0,g.R)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.Gl=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.C=f,f=(0,g.R)(),f-e.N>e.policy.j&&(e.N=f,e.callbacks.Wq(k,e.u)),JHa(e)))}; this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; this.j=new cy;this.B=window.AbortController?new AbortController:void 0;this.start(a)}; JHa=function(a){a.Gl.read().then(a.Z,a.onError).then(void 0,ws)}; WR=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.Ut(f)}; a=cr(function(f){d.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",cr(function(f){d.Fd(f)}),!1)}; $R=function(a,b,c,d,e,f){var k=void 0===f?{}:f;f=void 0===k.Rx?[]:k.Rx;var l=void 0===k.Fy?!1:k.Fy,m=void 0===k.cq?0:k.cq,n=void 0===k.poToken?"":k.poToken,p=void 0===k.gp?void 0:k.gp;k=void 0===k.Yx?"":k.Yx;uR.call(this,b,e);var q=this;this.policy=a;this.logger=new g.oQ("dash/request");this.Z=this.B=0;this.xa=!1;this.K=this.J=null;this.va=!1;this.timing=new NR(this,c);this.ma=d;this.Fy=l;this.u=g.yz(this.info,this.policy,this.ma);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf", (1E3*m).toFixed().toString());this.Fy&&this.u.set("smb","1");this.policy.bj&&n&&this.u.set("pot",n);k&&this.u.set("bbs",k);this.Rx=f||null;this.gp=p;this.D=KHa(this);this.ra=1*this.policy.Zf;this.X=new g.L(this.GZ,this.ra,this);this.info.u.K=(0,g.R)();psa(YR(this));try{this.xhr=LHa(this),this.X.start()}catch(t){g.Mv(t),this.lastError="net.ssl",g.oi(function(){ZR(q)})}}; KHa=function(a){if(!(xz(a.info)&&a.info.Yk()&&a.policy.Fb&&a.Rx)||2<=a.info.u.u||0a.policy.Jk||a.D&&!a.policy.Lr?0:zx())?Ax()?new MR(b,a.policy.D,a.timing):new VR(b,a.policy.D,a.timing):new WR(b,a.timing)}; PHa=function(a){if(!a.policy.D.Ch||!isNaN(a.info.Ye)&&0a.info.j[0].Ma?!1:!0}; bS=function(a,b,c,d,e){this.Ua=a;this.policy=b;this.schedule=c;this.N=d;this.Z=e;this.ma=NaN;this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.X=NaN}; QHa=function(a,b,c,d,e){return b.gb&&b.ra&&3===Gra(b)?new bS(a,b,c,d,e):null}; RHa=function(a,b){if(a.policy.Mr){var c=b.info.Nb,d=WB(a.schedule);b=b.index.Qg;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.Cc));a.Qa()}}; UHa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.jh,k=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Cc&&!a.B;if(!f&&!c&&SHa(a,b))return NaN;c&&(a.B=!0,a.Qa());a:{d=k;c=Date.now()/1E3-(a.N.Cg()||0)-a.K.B-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.Qa();cS(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.kc;d1E3*a.policy.Kv){a.ya("ombttl",{});return}}e=a.Fg();if(a.X&&xR(a.X,hz(c,d,e,a.policy.Xa))){d=hz(c,d,e,a.policy.Xa);e=XHa(a.X,d);if(a.j.isLive&&a.policy.Qv)var f=c.Bm(Infinity);else{if(!c.indexRange||!c.initRange)return;var k=c.indexRange.length+c.initRange.length,l=YHa(a.X,d);if(!l){a.ya("ombooo",{});return}k=l-k;if(a.policy.yk&&0(0,g.R)()-d.X;var e=d.nextVideo&&3*XQ(d,d.nextVideo.info)=a.policy.Dk)return jS(a,"toomany"),!1;if(!a.policy.Qk&&0=a.policy.Kk)return jS(a,"maxpending"),!1;d=b.u;if(!d)return!0;4===d.type&&d.j.df()&&(b.u=g.Xb(d.j.pu(d)),d=b.u);if(!oz(d)&&!d.j.zn(d))return jS(a,"notready"),!1;var e=a.j.gf||a.j.N;if(a.j.isManifestless&&e){e=b.j.index.getLastSegmentNumber();var f=c.j.index.getLastSegmentNumber(); e=Math.min(e,f);if(0=e)return b.X=e,c.X=e,jS(a,"postlive"),!1}if(d.j.info.audio&&4===d.type)return jS(a,"toomanyaudio"),!1;if(tHa(b)&&!a.policy.Va)return jS(a,""),!0;if(oz(d))return jS(a,"eos"),!1;if(GR(b)&&GR(b)+GR(c)>a.policy.qb)return jS(a,"maxheap"),!1;e=!b.D&&!c.D;f=d.C;f=!!(c.u&&!oz(c.u)&&c.u.C dIa(a,b))return jS(a,"maxtime;"+d.C.toFixed(3)+";"+dIa(a,b)),!1;if((b=b.hc)&&b.isLocked())return jS(a,"locked"),!1;jS(a,"");return!0}; eIa=function(a,b,c){if(mS(a,b,c)){if(b.K){if(a.j.isLive){var d=a.j.Ie&&a.j.N?b.j.An(a.j.Ie,!1):b.j.Bm(Infinity);d.Ye=a.Ye}else d=b.j.An(0,!1);a.D?0===d.Ye&&(d.D=a.D.X):d.D=a.ib}else if(d=b.u,d.j.df()){var e=d.C-a.currentTime,f=!d.range||0===d.u&&0===d.zb?0:d.range.length-(d.zb+d.u),k=d.j;if(LR(b)&&b.j.df()){var l=Math.min(15,.5*nS(a,b,!0));l=tHa(b)||e<=l||a.u.N}else l=!1;l&&0===f&&(a.j.isManifestless?k=b.j:(k=d.startTime+oS,d.u&&(k+=d.duration),PQ(b,k),d=b.u,k=d.j));k.Pj()?(f=a.u,c=JQ(a.N,k.info.Nb, c.j.info.Nb,e,0k&&(c=d.j.ls(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=tz(d),c.pr=""+b.B.length,a.J.u&&(c.sk="1"),c.snss=d.D,a.ya("nosq",c)),d=k.tv(d));if(a.rk)for(c=g.r(d.j),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Pj()?(c=JQ(a.N,b.j.info.Nb,c.j.info.Nb,0),d=d.j.ls(d,c)):d=d.j.tv(d);if(a.C&&(c=a.B,e=d.j[0].Ma, e=0>e&&!isNaN(c.B)?c.B:e,k=pGa(a.B,d.j[0].B,e),f=b===a.audioTrack?1:2,c=a.C.Hj(k,e,d.j[0].j.info.id,f),0>e&&(a.policy.Ov||2===f)&&tGa(a.B,0,0,!0),c)){k={decurl_itag:d.j[0].j.info.Yb(),sg:e,st:k.toFixed(3)};if(a.policy.er&&b.isRequestPending(e-1)){a.ya("sdai",{wt_daistate_on_sg:e-1});return}a.ya("sdai",k);e=d;c&&(e.B=new g.Tx(c))}a.policy.pj&&-1!==d.j[0].Ma&&d.j[0].Maf){if(a.policy.ib){var w=Object.assign(OR(e.timing),{rst:""+e.state,strm:""+e.xhr.Fu(),d:HHa(e.timing)});a.ya("rqs",w)}e.xa&&a.ya("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var x= a.timing,y=e.info.j[0].j,z=!x.D&&y.info.video,E=!x.u&&y.info.audio;3===e.state?z?x.tick("vrr"):E&&x.tick("arr"):4===e.state?z?(x.D=g.bz(e.u),g.Pr(),Rr(4)):E&&(x.u=g.bz(e.u)):e.Av()&&z&&(g.Pr(),Rr(4));if(3===e.state){KR(l,e);xz(e.info)&&eS(a,l,k,!0);if(a.C){var I=e.info.Hj();I&&a.C.Nj(e.info.j[0].Ma,k.info.id,I)}a.Gh()}else if(e.isComplete()&&5===e.info.j[0].type){if(4===e.state){var J=(e.info.j[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;J&&J instanceof $R&&J.C&&OHa(J,!0)}e.dispose()}else{if(!e.isFailed()&& e.D&&2<=e.state&&3!==e.state){var N=e.xhr.getResponseHeader("X-Response-Itag");if(N){var aa=FGa(a.u,N),K=e.info.range.length-aa.nF();aa.J=!0;e.info.j[0].j.J=!1;var sa=aa.zo(K);e.info=sa;if(e.j){var ia=e.j,Ca=sa.j;ia.j=Ca;var vb=Ca[0].range,Rc=new cy;for(f=0;fob.B&&(ob.B=NaN,ob.C=NaN),ob.j&&ob.j.Ma===Ie.j[0].Ma){var Rf=ob.j.Jd.event;if("start"===Rf||"continue"===Rf){if(1===ob.u||5===ob.u)ob.j.ax?SQ(ob,4,"cue"):(ob.B=Ie.j[0].Ma,ob.C=Ie.j[0].B,ob.ya("sdai",{joinad:ob.u,sg:ob.B,st:ob.C.toFixed(3)}), SQ(ob,2,"join"),wg.zF(ob.j.Jd))}else"stop"!==Rf||1!==ob.u&&5!==ob.u||ob.ya("sdai",{joinstop:1,st:ob.u,sg:ob.B}),SQ(ob,5,"stop")}else 1===ob.u&&SQ(ob,5,"noad")}}else if(a.policy.Ia&&e.au()&&!e.isComplete()&&!fS(a,e)&&!e.isFailed())break a;e.isFailed()&&a.zq(e);a.Gh();if(a.policy.Gb&&e.isComplete()&&e.canRetry()&&fz(e.info.u,a.policy,a.xa)){var Xh=a.xa;var Wd=Wx(e.info.u.j);var Qb=dz(Xh,Wd);if(!(Qb.B+a.policy.Gb*qsa(Qb,a.policy,!0)>(0,g.R)())){var xg=Esa(e.info,!1);xg&&pS(a,xg)}}}}}}}catch(Hd){e=ZC(0), aa=$C(Hd,0),a.handleError(aa.errorCode,aa.details,aa.severity),e||gS(a)}},d)}; fIa=function(a,b){b&&a.Aa.uB(b);a.policy.Ck&&a.u.Pa&&(b=CGa(a.u,"a"),rS(a.Aa,b.reason,b.audio.info))}; fS=function(a,b){try{var c=b.info.j[0].j.info.video?a.videoTrack:a.audioTrack;if(a.j.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.au(),c.K=!1);b.gF()&&a.Ha.Wg(1,b.gF());var d=b.QJ(),e=b.pM(),f=a.j,k;for(k in f.j){var l=f.j[k].index;l.Tk&&(d&&(l.uv=Math.max(l.uv,d)),e&&(l.B=Math.max(l.B||0,e)))}}if(b.info.Yk()&&!wz(b.info))for(var m=g.r(b.rD()),n=m.next();!n.done;n=m.next())pR(c.C,n.value);DR(c);return!!c.Hf()}catch(p){return b=b.qq(),b.origin="hrhs",gIa(a,p,b),!1}}; gIa=function(a,b,c){if(b instanceof Error&&(c.msg||(c.msg=""+b.message),g.Mv(b),"WARNING"===b.level)){sS(a.Aa,c);return}a.handleError("fmt.unplayable",c,1)}; aIa=function(a){if(a.mediaSource){var b=a.mediaSource.j,c=a.mediaSource.u,d=hIa(a);if(d){if(a.policy.Xr){if(!b.qo()){var e=a.audioTrack.Hf();e&&(tS(a,a.audioTrack,b,e.info),uS(a,b,e))}!c.qo()&&(b=a.videoTrack.Hf())&&(tS(a,a.videoTrack,c,b.info),uS(a,c,b))}a.ra||(a.ra=(0,g.R)(),a.policy.Z&&a.ya("apdps",{r:d}))}else{if(a.ra){d=(0,g.R)()-a.ra;e=HR(a.audioTrack,a.currentTime);var f=HR(a.videoTrack,a.currentTime);a.policy.Z&&a.ya("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()}); a.ra=0}if(a.D){d=a.D;e=a.audioTrack;f=pA(a.mediaSource.u.yf());if(d.C)d=UHa(d,f);else{if(f=e.Hf()){var k=f.u;k&&k.D&&k.B&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Ye&&(d.C=e,d.K=k,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.Qa())}d=NaN}d&&a.Aa.seekTo(d,{Cq:!0,oe:"pollSubsegmentReadahead",Zp:!0})}d=!1;iIa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=(0,g.R)(),PG("vda",e.C,e.j),e.B&&(g.Pr(),Rr(4))));if(a.mediaSource&&!a.mediaSource.cf()&& (iIa(a,a.audioTrack,b)&&(d=a.timing,d.B||(d.B=(0,g.R)(),PG("ada",d.B,d.j),d.C&&(g.Pr(),Rr(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Ub&&FR(a.videoTrack)&&FR(a.audioTrack)&&wA(a.mediaSource)&&!a.mediaSource.kh()&&(e=BR(a.audioTrack).j,e===a.j.j[e.info.id]&&(e=a.mediaSource,wA(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.We.webkitSourceEndOfStream(e.We.EOS_NO_ERROR)),e=a.schedule,Nta(XB(e)),e.D=TB(),e.N=!0));e=a.policy.Iv;f=a.policy.Pv;d||!(0c*(10-e)/KQ(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ma:-1);e=!!f}if(e)return!1;tS(a,b,c,d.info);if(a.j.u&&0===d.info.zb&&(g.Mz(d.info.j.info)||a.policy.Ip)){if(null==c.qo()){e=BR(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var k=0;ke)||(a.policy.ob&&(!d.info.zb||d.info.Zd||10>d.info.B)&&a.ya("sba",c.Mb({as:lz(d.info)})),e=d.D||d.B?d.info.j.j:null,f=hy(d.j),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),c=jIa(a,c,f,d.info,e),"s"===c?(a.Xa=0,a=!0):("i"===c||"x"===c?kIa(a,"checked",c,d.info):("q"===c&&(d.info.isVideo()?(e=a.policy,e.K=Math.floor(.8*e.K), e.xa=Math.floor(.8*e.xa),e.J=Math.floor(.8*e.J)):(e=a.policy,e.X=Math.floor(.8*e.X),e.ub=Math.floor(.8*e.ub),e.J=Math.floor(.8*e.J)),YQ(a.u,d.info.j)),sS(a.Aa,{reattachOnAppend:c})),a=!1),e=!a);if(e)return!1;b.Yh(d);return!0}; kIa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",a.policy.Nk||(d.j.C=e),d.j.info.video&&!ZQ(a.u)&&YQ(a.u,d.j)):"i"===c&&(15>a.Xa?(a.Xa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=tz(d);var k;d.mrs=null==(k=a.mediaSource)?void 0:xA(k);d.origin=b;d.reason=c;a.handleError(e,d,f)}; cHa=function(a,b,c,d,e){var f=a.j,k=!1,l=-1;e=f.Wa&&e;for(var m in f.j){var n=aA(f.j[m].info.mimeType)||f.j[m].info.isVideo();if(d===n)if(k=f.j[m].index,Fz(k,b.Ma)){n=b;var p=k.il(n.Ma);p&&p.startTime!==n.startTime?(e||(k.segments=[],k.hD(n)),k=!0):k=!1;k&&(l=b.Ma)}else k.hD(b),k=!0}0<=l&&(m={},f.ea("clienttemp","resetMflIndex",(m[d?"v":"a"]=l,m.cfl=e,m),!1));nGa(a.J,b,d,k);a.B.VG(b,c,d)}; tS=function(a,b,c,d){b=BR(b);!b||b.Zd||rz(b,d)||c.abort();!c.Mw()||tA()?c.HI(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.Mw()&&a.ya("ctu",{ct:tA(),prev_c:c.Mw(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.wj&&b&&(d=0+b.duration,b=-b.j,0===c.oA()&&d===c.dF()||c.RH(0,d),b!==c.pd()&&(c.iC(b),sR&&eHa(a.audioTrack.C,c.tF())))}; uS=function(a,b,c){c.info.j.df();var d=c.info.j.j;if(!d||!b.Mz()||b.qo()===d)return!1;var e=d,f=b.sA();if(a.policy.dh&&f&&b.isView()&&g.Mz(c.info.j.info)){var k=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=fsa(k,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ya("fenc",{})}f=null;(k=c.info.j.zo(0))&&(f=k.j[0]);a.policy.ob&&a.ya("sbi",b.Mb({as:lz(c.info)}));a.policy.Sh&&b.abort();d=jIa(a,b,e,f,d);if("s"!==d)return kIa(a,"sepInit",d,c.info),!0;c.info.isVideo()?(a=a.timing,a.K||(a.K= (0,g.R)(),PG("vis_a",a.K,a.j))):(a=a.timing,a.J||(a.J=(0,g.R)(),PG("ais_a",a.J,a.j)));return b.kh()}; jIa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:lA(b.yf()).replace(/,/g,"_"),message:g.Ic(f.message),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},VHa()),a.handleError("player.exception",b),"q";g.S(f)}return"u"}return a.mediaSource.cf()?"m":"s"}; kR=function(a,b){a.Aa.vB(b)}; nS=function(a,b,c){if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.X:a.policy.K;!a.policy.Va&&a.u.j.isLocked()&&(d=Math.max(d,b.j.info.audio?a.policy.ub:a.policy.xa));c&&(d+=a.policy.qb);c=a.u.j.isLocked()?b.u?b.u.j.info.Nb:b.j.info.Nb:b.Nb*a.policy.nj;d/=c;0a.currentTime)return c.start/1E3;return Infinity}; mIa=function(a,b){nP(b,"cms",function(c){a.policy.Z&&a.ya("pathprobe",c)},function(c){a.Aa.handleError(c)})}; nIa=function(a,b){a.C=b;a.B&&(a.B.D=b);a.C.VH(a.videoTrack.j.info.Ce())}; oIa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.D){var e=c.wt(d);e!==c.X&&(c.D.bH(c.X,e,c.ra,d),c.X=e);c.ra=d}a.currentTime!==b&&a.resume();a.J.u&&a.mediaSource&&!a.mediaSource.cf()&&(c=a.currentTime<=b&&b=b&&WHa(a,d.startTime,!1)}); return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new DS(null,null,null,null,a)}; GS=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c}; SIa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=a&&(c=.75*a),b=.5*(a-c),c=new xS(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new IS(a.kb("disable_license_delay"),!a.kb("h5_widevine_keyrotationagent_optimization_killswitch"), b,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.bL,this),this.D.subscribe("log_qoe",this.Ug,this);this.Qa("Created, key system "+this.j.keySystem+", final EME "+YA(this.Y.experiments));this.Ug({cks:this.j.zf()});c=this.j;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.Ia=new HS(this.videoData.Cc,this.Y.experiments),g.H(this,this.Ia))}; XIa=function(a){var b=a.C.attach();b?b.then(cr(function(){YIa(a)}),cr(function(c){if(!a.isDisposed()){a.Qa(); g.br(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Qa(),a.Ug({mdkrdy:1}),a.X=!0); a.Z&&(b=a.Z.attach())}; $Ia=function(a,b,c){a.Ha=!0;c=new fR(b,c);a.Y.S("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));ZIa(a,c)}; ZIa=function(a,b){if(!a.isDisposed()){a.Ug({onInitData:1});if(a.Y.S("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.Qa();a.Ug({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.va&&!a.videoData.isLivePlayback)MS(a);else{if(!(a.Y.S("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ce)){a.va=!0;c=b.cryptoPeriodIndex;var d=b.j;PGa(b);b.Ce||(d&&b.j!==d?a.ea("ctmp", "cpsmm",{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ea("widevine_set_need_key_info",b)}}else a.bL(b)}}; YIa=function(a){if(!a.isDisposed())if(a.Y.S("html5_drm_set_server_cert")&&!g.BC(a.Y)){var b=a.C.setServerCertificate();b?b.then(cr(function(c){WC(a.Y)&&a.ea("ctmp","ssc",{success:c})}),cr(function(c){a.ea("ctmp","ssce",{n:c.name, m:c.message})})).then(cr(function(){NS(a)})):NS(a)}else NS(a)}; NS=function(a){a.isDisposed()||(a.X=!0,a.Qa(),a.Ug({onmdkrdy:1}),MS(a))}; aJa=function(a){return"widevine"===a.j.flavor&&a.videoData.S("html5_drm_cpi_license_key")}; MS=function(a){if(a.Ha&&a.X&&!a.ra){for(;a.B.length;){var b=a.B[0],c=aJa(a)?QGa(b):g.Hc(b.initData);if(a.u.get(c))if("fairplay"===a.j.flavor)a.u.delete(c);else{a.B.shift();continue}PGa(b);break}a.B.length&&a.createSession(a.B[0])}}; bJa=function(a){var b;if(b=g.Ur()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.oy(b),a.ea("ctmp","drm",{metrics:b}))}; PS=function(a){g.G.call(this);var b=this;this.Aa=a;this.j=this.Aa.V();this.videoData=this.Aa.getVideoData();this.nx=0;this.J=this.B=!1;this.D=0;this.C=g.XA(this.j.experiments,"html5_delayed_retry_count");this.u=new g.L(function(){OS(b.Aa)},g.XA(this.j.experiments,"html5_delayed_retry_delay_ms")); g.H(this,this.u)}; RS=function(a,b,c){var d=a.videoData.u,e=a.videoData.J;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Aa.Kg.C&&d&&"22"===d.Yb())return a.Aa.Kg.C=!0,a.Gd("qoe.restart",{reason:"fmt.unplayable.22"}),QS(a.Aa),!0;var f=!1,k=a.nx+3E4<(0,g.R)()||a.u.isActive();if(a.j.S("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Gd("auth",c),!0;var l;if(l=!k)l=a.Aa.Do(),l=!!(l.Se()||l.isInline()||l.isBackground()|| l.It()||l.Et());l&&(c.nonfg="paused",k=!0,a.Aa.pauseVideo());"fmt.decode"!==b&&"fmt.unplayable"!==b||null==e||"mac3"!==e.j&&"MAC3"!==e.j&&"meac3"!==e.j&&"MEAC3"!==e.j&&"m"!==e.j&&"M"!==e.j||(jua(a.j.u,e.j),c.acfallexp=e.j,f=k=!0);!k&&0=a.j.gb)return!1;b.exiled=""+a.j.gb;a.Gd("qoe.start15s",b);a.Aa.ea("playbackstalledatstart");return!0}; fJa=function(a){if("GAME_CONSOLE"!==a.j.deviceParams.cplatform)try{window.close()}catch(b){}}; dJa=function(a){return a.B?!0:"yt"!==a.j.xa?!1:a.videoData.gb?25>a.videoData.ub:!a.videoData.ub}; eJa=function(a){if(!a.B){a.B=!0;var b=a.Aa.getPlayerState();b=g.V(b,4)||b.isSuspended();a.Aa.Xm();b&&!vE(a.videoData)||a.Aa.ea("signatureexpired")}}; gJa=function(a,b){if((a=a.Aa.xd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Cj();b.details.merr=c?c.toString():"0";b.details.msg=a.Ge()}}; hJa=function(a,b){return a.j.S("html5_eliminate_net_retryexhausted_error")?"net.badstatus"===b.errorCode&&(1===b.severity||!!b.details.fmt_unav):"net.retryexhausted"===b.errorCode||"net.badstatus"===b.errorCode&&!!b.details.fmt_unav}; jJa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="19075";if(dJa(a))return ZC(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new g.YC("qoe.restart",b)),a.Gd(b.errorCode,b.details),eJa(a),!0;6048E5<(0,g.R)()-a.j.Bd&&iJa(a,"signature");return!1}; iJa=function(a,b){try{window.location.reload();a.Gd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.j.S("tvhtml5_retire_old_players")&&g.BC(a.j)&&fJa(a)}; kJa=function(a,b){var c=a.j.u;c.D=!1;c.j=!0;a.Gd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});QS(a.Aa)}; lJa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d}; SS=function(a,b,c){this.Y=a;this.Cy=b;this.Aa=c;this.X=this.J=this.K=this.u=this.j=this.D=this.N=this.B=0;this.playbackRate=1;this.C=!1}; nJa=function(a,b,c){!a.Y.S("html5_tv_ignore_capable_constraint")&&g.BC(a.Y)&&(c=c.compose(mJa(a,b)));return c}; oJa=function(a,b){return 1(0,g.R)()-a.D?0:f||0k?a.u+1:0;if(!e||g.BC(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;rJa(a,b.videoData.u);a.Aa.ya("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},tJa()));return!0}; vJa=function(a,b){return 0>=g.XA(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new Cx(0,d,!1,"b")}; xJa=function(a){a=a.Aa.Do();return a.isInline()?new Cx(0,480,!1,"v"):a.isBackground()&&60e?(c&&(d=yJa(a,c,d)),new Cx(0,d,!1,"e")):LD}; yJa=function(a,b,c){if(a.S("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.GP(a.j),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.sH(a.playerState)&&!g.V(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; VS=function(a,b){b?CJa.test(a):(a=g.ir(a),Object.keys(a).includes("cpn"))}; WS=function(a,b,c,d,e,f,k){var l={format:"RAW"},m={};if(lr(a)&&mr()){if(k){var n;2!==(null==(n=DJa.uaChPolyfill)?void 0:n.state.type)?k=null:(k=DJa.uaChPolyfill.state.data.values,k={"Synth-Sec-CH-UA-Arch":k.architecture,"Synth-Sec-CH-UA-Model":k.model,"Synth-Sec-CH-UA-Platform":k.platform,"Synth-Sec-CH-UA-Platform-Version":k.platformVersion,"Synth-Sec-CH-UA-Full-Version":k.uaFullVersion});m=Object.assign(m,k);l.withCredentials=!0}k=g.P("EOM_VISITOR_DATA",void 0);b.S("enable_web_eom_visitor_data")&& k?m["X-Goog-EOM-Visitor-Id"]=k:d?m["X-Goog-Visitor-Id"]=d:b.S("enable_visitor_header_for_vss")&&!g.P("LOGGED_IN")&&g.P("VISITOR_DATA",void 0)&&(m["X-Goog-Visitor-Id"]=g.P("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);e&&(m.Authorization="Bearer "+e);k||m["X-Goog-Visitor-Id"]||e||c?l.withCredentials=!0:b.S("html5_send_cpn_with_options")&&CJa.test(a)&&(l.withCredentials=!0)}0a.K.aO+100&&a.K){var d=a.K,e=d.isAd;c=1E3*c-d.aO;a.xa=1E3*b-d.MZ-c-d.BZ;if(!a.j.videoData.S("web_player_dai_csi_killswitch")){c=(0,g.R)()-c;b=a.xa;d=a.j.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var k={};!d.S("web_player_csi_ctt_killswitch")&&d.X&&(k.cttAuthInfo={token:d.X,videoId:d.videoId});k.startTime=c-b;hx(f,k);gx({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);fx("pbs",c,f)}else c=a.j.Aa.Li(),c.K!==d.clientPlaybackNonce?(c.J=d.clientPlaybackNonce,c.B=b):g.Mv(new g.Cs("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}))}a.ya("gllat",{l:a.xa.toFixed(),prev_ad:+e});delete a.K}}; aT=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.GP(a.j);var c=a.j.Aa.BA();if(!isNaN(a.ma)&&!isNaN(c.j)){var d=c.j-a.ma;0a.u)&&2=e&&(g.S(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.Y.S("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.Aa.aH()}return a.j}; FJa=function(a){if(navigator.connection&&navigator.connection.type)return aKa[navigator.connection.type]||aKa.other;if(g.BC(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; fT=function(a){var b=new ZJa;b.C=a.Lh().cc||"-";b.playbackRate=a.Aa.getPlaybackRate();var c=a.Aa.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Sb&&(b.u=1);c=a.Aa.getAudioTrack();c.Ec&&c.Ec.id&&"und"!==c.Ec.id&&(b.B=c.Ec.id);b.connectionType=FJa(a);b.volume=a.Lh().volume;b.muted=a.Lh().muted;b.clipId=a.Lh().clipid||"-";b.j=a.videoData.JK||"-";return b}; g.sT=function(a){g.G.call(this);var b=this;this.u=a;this.qoe=this.j=null;this.fg=void 0;this.B=new Map;this.u.videoData.isValid()&&!this.u.videoData.bj&&(this.j=new lT(this.u),g.H(this,this.j),this.qoe=new g.ZS(this.u),g.H(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.fg=this.u.videoData.clientPlaybackNonce)&&this.B.set(this.fg,this.j));this.C=new TS(this.u,function(c){b.ya("h5h",c)}); g.H(this,this.C)}; bKa=function(a){if(a.u.videoData.enableServerStitchedDai&&a.fg){var b;null!=(b=a.B.get(a.fg))&&gT(b.u)}else a.j&&gT(a.j.u)}; cKa=function(a){a.C.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Ld&&(b.Ld="N");var c=g.GP(b.j);g.YS(b,c,"vps",[b.Ld]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);WC(b.j.Y)&&b.ya("finalized",{});b.va=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.B.values()),c=b.next();!c.done;c=b.next())qT(c.value);else a.j&&qT(a.j);a.dispose()}; dKa=function(a,b){a.j&&YJa(a.j,b)}; eKa=function(a){if(!a.j)return null;var b=mT(a.j,"atr");return function(c){a.j&&YJa(a.j,c,b)}}; fKa=function(a,b,c,d){c.adFormat=c.Wb;var e=b.Aa;b=new lT(new rT(c,b.Y,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Kh:function(){return e.Kh()}, BA:function(){return e.BA()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, Ww:function(){return e.Ww()}, getVisibilityState:function(){return e.getVisibilityState()}, Li:function(){return e.Li()}, aH:function(){e.aH()}, Ix:function(){e.Ix()}},b.Lh)); b.D=d;g.H(a,b);return b}; gKa=function(){this.cq=0;this.D=this.C=this.j=this.B=NaN;this.u={};this.bandwidthEstimate=NaN}; hKa=function(){this.u=g.Dw;this.j=[]}; jKa=function(a,b,c){var d=[];for(b=iKa(a,b);bc)break}return d}; kKa=function(a,b){var c=[];a=g.r(a.j);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; lKa=function(a){return a.j.slice(iKa(a,0x7ffffffffffff),a.j.length)}; iKa=function(a,b){a=pc(a.j,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; mKa=function(a,b){var c=NaN;a=g.r(a.j);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1}; qKa=function(a,b){this.videoData=a;this.j=b}; rKa=function(a,b,c){return Dwa(b,c).then(function(){return Gr(new qKa(b,b.C))},function(d){d instanceof Error&&dr(d); d=b.isLivePlayback&&!g.dB(a.u,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e=b.isLivePlayback&&!g.dB(a.u,!0)?2:1,f={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.ib,drm:""+ +XD(b),f18:""+ +(0<=b.cj.indexOf("itag=18")),c18:""+ +eA('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.j&&(XD(b)?(f.f142=""+ +!!b.j.j["142"],f.f149=""+ +!!b.j.j["149"],f.f279=""+ +!!b.j.j["279"]):(f.f133=""+ +!!b.j.j["133"],f.f140=""+ +!!b.j.j["140"],f.f242=""+ +!!b.j.j["242"]),f.cAVC=""+ +fA('video/mp4; codecs="avc1.42001E"'), f.cAAC=""+ +fA('audio/mp4; codecs="mp4a.40.2"'),f.cVP9=""+ +fA('video/webm; codecs="vp9"'));if(b.N){f.drmsys=b.N.keySystem;var k=0;b.N.j&&(k=Object.keys(b.N.j).length);f.drmst=""+k}return new g.YC(d,f,e)})}; sKa=function(a){this.D=a;this.B=this.u=0;this.C=new rQ(50)}; xT=function(a,b,c){g.cv.call(this);this.videoData=a;this.experiments=b;this.N=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new tKa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.ob?c.u=3:g.iE(a)&&(c.u=2);b.kb("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.N=!0);var d=vwa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===bE(a)&&(c.J=g.XA(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Sr("trident/")||Sr("edge/"))d=g.XA(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B, d);g.XA(b,"html5_minimum_readahead_seconds")&&(c.B=g.XA(b,"html5_minimum_readahead_seconds"));g.XA(b,"html5_maximum_readahead_seconds")&&(c.X=g.XA(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.C=!0);g.XA(b,"html5_allowable_liveness_drift_chunks")&&(c.j=g.XA(b,"html5_allowable_liveness_drift_chunks"));g.XA(b,"html5_readahead_ratelimit")&&(c.Z=g.XA(b,"html5_readahead_ratelimit"));switch(bE(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.K=b.kb("html5_live_smoothly_extend_max_seekable_time")}this.policy= c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.ob&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(bE(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=wT(this,b);this.Qa()}; uKa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.K&&3===vwa(a.videoData)&&--c;return yT(a)*c}; zT=function(a,b){var c=a.Jj(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*yT(a);return b>=c-a}; vKa=function(a,b,c){b=zT(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B}; wKa=function(a,b){b=zT(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b}; yT=function(a){return a.videoData.j?IA(a.videoData.j)||5:5}; wT=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/yT(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.X/yT(a))),b)}; tKa=function(){this.ma=1;this.B=0;this.X=Infinity;this.Z=0;this.C=!0;this.j=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.N=!1}; CT=function(a){g.G.call(this);this.Aa=a;this.Y=this.Aa.V();this.C=this.j=0;this.B=new g.L(this.D,1E3,this);this.xa=new AT({delayMs:g.XA(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.X=new AT({delayMs:g.XA(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.Da=BT(this,"html5_seek_set_cmt");this.ma=BT(this,"html5_seek_jiggle_cmt");this.ra=BT(this,"html5_seek_new_elem");this.Pa=BT(this,"html5_unreported_seek_reseek");this.K=BT(this,"html5_long_rebuffer_jiggle_cmt");this.N=new AT({delayMs:2E4}); this.J=BT(this,"html5_ads_preroll_lock_timeout");this.Ha=new AT({delayMs:g.XA(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ts:!this.Y.S("html5_report_slow_ads_as_error")});this.Ia=new AT({delayMs:g.XA(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ts:!this.Y.S("html5_skip_slow_buffering_ad")});this.va=BT(this,"html5_seek_over_discontinuities");this.Ra=new AT({delayMs:g.XA(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Z=BT(this,"html5_slow_start_no_media_source"); this.u={};g.H(this,this.B)}; BT=function(a,b){var c=g.XA(a.Y.experiments,b+"_delay_ms");a=a.Y.S(b+"_cfl");return new AT({delayMs:c,Ts:a})}; xKa=function(a,b,c,d,e,f,k){var l=mA(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&k&&m;var n=l+1b.bC,c=b.j&&c-b.j>b.zH||f?b.B=!0:!1):c=!1,c&&(c=Object.assign({},a.Mb(b)),c.wn=k,c.we=e,c.wsuc=d,a.Aa.ya("workaroundReport",c),d&&(b.reset(),a.u[e]=!1)))}; AT=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.zH?1E3:b.zH,d=void 0===b.bC?3E4:b.bC;b=void 0===b.Ts?!1:b.Ts;this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.zH=c;this.bC=d;this.Ts=b}; yKa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.R)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1}; FT=function(a){g.G.call(this);var b=this;this.Aa=a;this.Y=this.Aa.V();this.videoData=this.Aa.getVideoData();this.policy=new zKa(this.Y);this.Z=new CT(this.Aa);this.playbackData=null;this.Ha=new g.cA;this.J=this.u=this.Ua=this.mediaElement=null;this.j=NaN;this.B=0;this.C=null;this.va=NaN;this.D=this.K=null;this.X=this.N=!1;this.ra=new g.L(function(){AKa(b,!1)},2E3); this.Pa=new g.L(function(){ET(b)}); this.Da=new g.L(function(){b.Qa();b.N=!0;BKa(b)}); this.timestampOffset=0;this.Ia=!0;this.xa=0;this.Ra=NaN;this.ma=new g.L(function(){var c=b.Y.Oc;c.j+=1E4/36E5;c.j-c.B>1/6&&(Gua(c),c.B=c.j);b.ma.start()},1E4); g.H(this,this.Z);g.H(this,this.Ha);g.H(this,this.ra);g.H(this,this.Da);g.H(this,this.Pa);g.H(this,this.ma)}; CKa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new sKa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(TD(a.videoData)&&a.Ua){var c=a.Ua.Ha.Cg()||0;break a}if(a.videoData.j){c=a.videoData.j.ra;break a}}c=0}return c}),a.u=new xT(a.videoData,a.Y.experiments,function(){return a.wd(!0)})); a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.u&&cd.C||g.Ua()-d.J=a.wd()-.1)a.j=a.wd(),a.C.resolve(a.wd()),HP(a.Aa);else try{var c=a.j-a.timestampOffset;a.Qa();a.mediaElement.seekTo(c);a.Z.j= c;a.va=c;a.B=a.j}catch(d){a.Qa()}}}; IKa=function(a){if(!a.mediaElement||0===a.mediaElement.Fh()||0>31));yK(a,16,b.GV);yK(a,18,b.bU);yK(a,19,b.aU);yK(a,21,b.a_);yK(a,23,b.LT);yK(a,34,b.visibility);CK(a,38,b.mediaCapabilities,RKa,3);yK(a,39,b.o_);yK(a,40,b.sU)}; TKa=function(a){for(var b=[];rK(a,2);)b.push(qK(a));return{lE:b.length?b:void 0,NI:sK(a,4)}}; RKa=function(a,b){var c;if(b.MI)for(c=0;ca;a++)UT[a]=255>=a?9:7;VT.length=32;VT.fill(5);WT.length=286;WT.fill(0);for(a=261;285>a;a++)WT[a]=Math.floor((a-261)/4);XT[257]=3;for(a=258;285>a;a++){var b=XT[a-1];b+=1<a;a++)ZT[a]=3>=a?0:Math.floor((a-2)/2);for(a=$T[0]=1;30>a;a++)b=$T[a-1],b+=1<a.C.length&&(a.C=new Uint8Array(2*a.B),a.B=0,a.u=0,a.D=!1,a.j=0,a.register=0)}a.C.length!==a.B&&(a.C=a.C.subarray(0,a.B));return a.error?new Uint8Array(0):a.C}; iLa=function(a,b,c){b=bU(b);c=bU(c);for(var d=a.data,e=a.C,f=a.B,k=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}k|=(d[m+1]<<8)+d[m]<n)for(k>>=7;0>n;)n=b[(k&1)-n],k>>=1;else k>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=k,a.j=l,a.u=m,256a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(cU(a,7);0>c;)c=b[aU(a,1)-c];return c>>4}; aU=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<>=b;a.j-=b;return c}; cU=function(a,b){a.j-=b;a.register>>=b}; bU=function(a){for(var b=[],c=g.r(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var k=1;k>m&1;l=f<<4|k;if(7>=k)for(m=1<<7-k;m--;)d[m<>=7;k--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; lLa=function(a){var b,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.jLa(new g.fLa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new cy([]);case 2:return g.A(m,d.read(),4);case 4:f=m.u;k=f.value;if(l=f.done){m.Ya(3);break}e.append(k);m.Ya(2);break;case 3:return m.return(hy(e))}})}; nLa=function(a,b){var c=[];b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=mLa[d]||0;a.j&&e>a.j||c.push(d)}return c}; qLa=function(a,b){var c=a[a.length-1];a.push.apply(a,g.u(oLa[c]||[]));b.S("html5_early_media_for_drm")&&a.push.apply(a,g.u(pLa[c]||[]))}; vLa=function(a,b){var c=YD(a),d=a.V().u;if(dU&&!d.j)return dU;for(var e=[],f=[],k={},l=g.r(rLa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.r(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=sLa(p);!q||!q.video||Zz(q)&&!c.ra&&q.video.j>c.X||(n?e.push(p):(q=Kx(c,q,d),!0===q?(n=!0,e.push(p)):k[p]=q))}e&&qLa(e,a)}l=g.r(tLa);for(n=l.next();!n.done;n=l.next()){n=g.r(n.value);for(p=n.next();!p.done;p=n.next())if(m=p.value,(p=uLa(m))&&p.audio)if(p=Kx(c,p,d),!0===p){f.push(m);break}else k[m]= p;f&&qLa(f,a)}c.B&&b("orfmts",k);dU={video:e,audio:f};d.j=!1;return dU}; sLa=function(a){var b=wLa[Vz[a]],c=xLa[a];if(!c||!b)return null;var d=new Sz(c.width,c.height,c.fps);b=wta(b,d);return new Wz(a,b,{video:d,Nb:c.bitrate/8})}; uLa=function(a){var b=wLa[Vz[a]],c=yLa[a];return c&&b?new Wz(a,b,{audio:new Qz(c.audioSampleRate,c.numChannels)}):null}; zLa=function(a){this.td=a;this.logger=new g.oQ("onesie");this.B={};this.j={};this.C=!0;this.u=null;this.queue=new RT(this)}; eU=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.r(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())c=c.value,a.j[c].OM||eLa(a.queue,c)}; ALa=function(a,b){var c=b.totalLength,d=!1;switch(a.u){case 0:a.ZG(b,a.C).then(function(e){var f=a.td;f.re("oprr");f.playerResponse=e;f.rG||(f.ou=!1);fU(f)},function(e){a.td.fail(e)}); break;case 2:a.re("ormk");b=hy(b);a.queue.decrypt(b);break;default:d=!0}a.td.Oh&&a.td.ya("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null}; BLa=function(a,b,c){var d=iy(b,0);a.td.Oh&&a.td.ya("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=b.split(1).Gr,(d=a.B[d]||null)&&a.queue.enqueue(d,b,c))}; CLa=function(a,b){if(b+1<=a.totalLength){var c=iy(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=iy(a,b++);else if(2===c)c=iy(a,b++),a=iy(a,b++),a=(c&63)+64*a;else if(3===c){c=iy(a,b++);var d=iy(a,b++);a=iy(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=iy(a,b++);d=iy(a,b++);var e=iy(a,b++);a=iy(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),gy(a,c,4)?a=Pra(a).getUint32(c-a.B,!0):(d=iy(a,c+2)+256*iy(a,c+3),a=iy(a,c)+256*(iy(a,c+1)+ 256*d)),b+=5;return[a,b]}; gU=function(a){this.callbacks=a;this.j=new cy}; DLa=function(a,b){var c=g.PA(b.Y.experiments,"debug_bandaid_hostname");if(c)b=pP(b,c);else if(c=b.j.get(0)){var d=c;if(b.Y.S("html5_onesie_host_racing_during_prewarming")){var e=b.j.values();e=g.r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,uP(f)Math.random())try{g.Mv(new g.Cs("b/152131571",btoa(d)))}catch(y){}return x.return(Promise.reject(new g.YC(t,{backend:"gvi"},w)))}})}; TLa=function(a,b){var c,d,e,f,k,l,m,n,p,q,t,w,x,y;return g.B(function(z){if(1==z.j)return a.fetchType="gvi",c=a.V(),(f=pBa(a))?(d={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:f},e=kr(b,{action_display_post:1})):(d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e=b),k={},c.sendVisitorIdHeader&&a.visitorData&&(k["X-Goog-Visitor-Id"]=a.visitorData),(l=g.PA(c.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=l),0t.u&&3!==t.j.Aa.getVisibilityState()&&US(t);q.qoe&&(q=q.qoe,q.Ha&&0>q.B&&q.j.Y.Uc&& eT(q));p.Ua&&qS(p);p.Y.Mk&&!p.videoData.backgroundable&&p.mediaElement&&!p.Cf()&&(p.isBackground()&&p.mediaElement.iz()?(p.ya("bgmobile",{suspend:1}),p.Xm(!0)):p.isBackground()||kU(p)&&p.ya("bgmobile",{resume:1}))}; this.zg=new tT(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.Ew("endcr")||g.V(p.playerState,32)||HP(p); e(q,t,p.playerType)}); g.H(this,this.zg);g.H(this,this.Tc);XLa(this,m);this.videoData.subscribe("dataupdated",this.eZ,this);this.videoData.subscribe("dataloaded",this.uE,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ya,this);this.videoData.subscribe("ctmpstr",this.yH,this);YLa(this);kFa(this.Ne);this.visibility.subscribe("visibilitystatechange",this.Ne);this.videoData.Da&&ZLa(this);!Hwa(this.videoData)&&Mwa(this.videoData)||$La(this);1===this.playerType&&lU.isActive()&& this.QB.start();this.videoData.Pd=this.getUserAudio51Preference();this.S("html5_generate_content_po_token")&&aMa(this)}; XLa=function(a,b){if(2===a.playerType||a.Y.Ok)b.hJ=!0;var c=Iva(b.Wb,b.Wr,a.Y.j,a.Y.B);c&&(b.adFormat=c);2===a.playerType&&(b.El=!0);if(a.isFullscreen()||a.Y.j)c=g.aw("yt-player-autonavstate"),b.autonavState=c||(a.Y.j?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&nU(a,b.endSeconds)}; YLa=function(a){!a.Zb||a.Zb.isDisposed();a.Zb=new g.sT(new rT(a.videoData,a.Y,a,function(){return a.Fi.Lh()}))}; mF=function(a){return a.mediaElement&&a.mediaElement.Lp()?a.mediaElement.Ke():null}; oU=function(a){if(a.videoData.isValid())return!0;a.Wf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; ZLa=function(a){var b=a.Fi.Kc();a.videoData.cm=a.videoData.cm||(null==b?void 0:b.hF());a.videoData.fm=a.videoData.fm||(null==b?void 0:b.iF())}; g.FP=function(a,b){b=void 0===b?!1:b;if(!b){var c=a.Zb;US(c.C);c.qoe&&eT(c.qoe)}a.Jt=b;!oU(a)||a.Tm.started?g.BC(a.Y)&&a.videoData.isLivePlayback&&a.Tm.started&&!a.Tm.isFinished()&&!a.Jt&&a.uE():(a.Tm.start(),b=a.Zb,g.GP(b.u),b.qoe&&HJa(b.qoe),a.uE())}; bMa=function(a){var b=a.videoData;WLa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=$C(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Wf("auth",2,unescape(a.videoData.errorReason),XC(c.details),a.videoData.errorDetail,a.videoData.Ki||void 0):a.handleError(c))})}; nFa=function(a,b){a.rd=b;a.Ua&&nIa(a.Ua,new g.vS(b))}; cMa=function(a){if(!g.V(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Zi=g.ic(a.videoData.ra)),hE(a.videoData)){a.Hb.tick("bpd_s");pU(a).then(function(){a.Hb.tick("bpd_c");if(!a.isDisposed()){a.Jt&&(a.Vb(mH(mH(a.playerState,512),1)),kU(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&nU(a,c.endSeconds);a.Tm.finished=!0;qU(a,"dataloaded");a.Um.started&&rU(a);AJa(a.Kg,a.Oe)}}); a.S("html5_log_media_perf_info")&&a.ya("loudness",{v:a.videoData.Od.toFixed(3)},!0);var b=Nwa(a.videoData);b&&a.ya("playerResponseExperiment",{id:b},!0);a.hE()}else qU(a,"dataloaded")}; pU=function(a){sU(a);a.Oe=null;var b=rKa(a.Y,a.videoData,a.Cf());a.Qx=b;a.Qx.then(function(c){dMa(a,c)},function(c){a.isDisposed()||(c=$C(c),a.visibility.isBackground()?(tU(a,"vp_none_avail"),a.Qx=null,a.Tm.reset()):(a.Tm.finished=!0,a.Wf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",XC(c.details))))}); return b}; QS=function(a){pU(a).then(function(){return kU(a)}); g.qH(a.playerState)&&a.playVideo()}; dMa=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Oe=b;CKa(a.Tc,a.Oe);if(a.videoData.isLivePlayback){var c=(a.S("html5_onesie_ads")?QFa(a.Fi.Qt,a.videoData.videoId):!!a.videoData.zk)||a.Ua&&!isNaN(a.Ua.Da);c=a.S("html5_onesie_live")&&c;0ZB(b.Y.Oc,"sticky-lifetime")?"auto":Gx[LA()]:d=Gx[LA()],d=g.Ex("auto",d,!1,"s");if(Fx(d)){d=mJa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var k=g.r(f.videoInfos),l=k.next();!l.done;l=k.next()){l=l.value;var m=void 0;if(null==(m=l.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Fma()&&!g.BC(b.Y)&&Xz(c.j.videoInfos[0])&& (f=Math.min(f,g.Dx.large));f=new Cx(0,f,!1,"o");d=e.call(d,f);e=d.compose;f=4320;!b.Y.isMobile||g.qC(b.Y)||Zr()||b.Y.S("hls_for_vod")||(f=b.Y.S("mweb_default_hd720")?g.Dx.hd720:g.Dx.medium);(k=g.XA(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.vg&&!c.videoData.Rd&&(f=Math.min(f,k));k=g.XA(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;k&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,k));if(l=k=g.XA(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l= g.r(l.videoInfos),m=l.next();!m.done;m=l.next())if(32f&&0!==f&&b.j===f)){1b.j&&"b"===b.reason;c=a.u.Va&&!tA();d||e||b||c?sS(a.Aa,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.op(a.ma)}}}; qS=function(a){a.S("html5_update_constraint")?wU(a):vU(a)}; iMa=function(a){var b=hMa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Ec.getName()===b})}; hMa=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;bn&&(n+=f.j);for(var p=0;pa.mediaSource.getDuration()&&a.mediaSource.hk(c)):a.mediaSource.hk(d);var e=a.Ua,f=a.mediaSource;e.rk&&(gS(e),e.rk=!1);cIa(e);if(!f.j&&!f.u){var k=e.videoTrack.Hf(),l=k?k.info.j:e.videoTrack.j,m=e.audioTrack.Hf(),n=l.info.mimeType+e.policy.xj,p=(m?m.info.j:e.audioTrack.j).info.mimeType,q,t=null==(q=f.mediaSource)? void 0:q.addSourceBuffer(p),w,x="fakesb"===n.split(";")[0]?void 0:null==(w=f.mediaSource)?void 0:w.addSourceBuffer(n);f.We&&(f.We.webkitSourceAddId("0",p),f.We.webkitSourceAddId("1",n));var y=new sA(t,f.We,"0",Uz(p),!1),z=new sA(x,f.We,"1",Uz(n),!0);f.j=y;f.u=z;g.H(f,y);g.H(f,z)}AR(e.videoTrack,f.u||null);AR(e.audioTrack,f.j||null);e.mediaSource=f;e.resume();g.dv(f.j,e.Va,e);g.dv(f.u,e.Va,e);try{e.Gh()}catch(E){g.S(E)}a.ea("mediasourceattached")}}catch(E){g.Mv(E),a.handleError(new g.YC("fmt.unplayable", {msi:"1",ename:E.name},1))}})}; lMa=function(a){a.Ua?a.Ua.seek(a.getCurrentTime()-a.pd()).Bh(function(){}):uU(a)}; OS=function(a,b){b=void 0===b?!1:b;return g.B(function(c){if(1==c.j)return a.Ua&&a.Ua.isDisposed()&&sU(a),a.S("html5_reloads_report_as_buffering")&&a.Vb(mH(a.playerState,2048)),a.ea("newelementrequired"),b?g.A(c,pU(a),2):c.Ya(2);g.V(a.playerState,8)&&a.playVideo();g.ua(c)})}; hFa=function(a,b){a.ya("newelem",{r:b});OS(a)}; EU=function(a){a.Hb.D.HG();g.V(a.playerState,32)||(a.Vb(mH(a.playerState,32)),g.V(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Pb()}; XP=function(a){g.V(a.playerState,32)?(a.Vb(oH(a.playerState,16,32)),a.ea("endseeking",a)):g.V(a.playerState,2)||a.Vb(mH(a.playerState,16));a.Hb.D.LG(a.videoData,g.V(a.playerState,4))}; $La=function(a){var b=a.videoData.errorDetail;a.Wf("auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Ki||void 0)}; qU=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; mMa=function(a){for(var b=g.r("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.Qu.T(a.mediaElement,c.value,a.eH,a);a.Y.yk&&a.mediaElement.Lp()&&(a.Qu.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.zW,a),a.Qu.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.BW,a))}; nMa=function(a){window.clearInterval(a.JB);FU(a)||(a.JB=g.sr(function(){return FU(a)},100))}; FU=function(a){var b=a.mediaElement;b&&a.pB&&!a.videoData.gb&&!ux("vfp",a.Hb.timerName)&&2<=b.Fh()&&!b.Tf()&&0b.u&&(b.u=c,b.delay.start());b.B=c;b.D=c;g.op(a.jE);a.ea("playbackstarted");g.Qr()&&((a=g.Ka("yt.scheduler.instance.clearPriorityThreshold"))?a():Rr(0))}; oMa=function(a){var b=a.getCurrentTime(),c=a.videoData;!ux("pbs",a.Hb.timerName)&&Nw.measure&&Nw.getEntriesByName&&(Nw.getEntriesByName("mark_nr")[0]?nra("mark_nr"):nra());c.videoId&&a.Hb.info("docid",c.videoId);c.eventId&&a.Hb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.S("web_player_early_cpn")&&a.Hb.info("cpn",c.clientPlaybackNonce);0a.sN+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&FA(a.videoData.j))){var b=a.Zb;if(b.qoe){b=b.qoe;var c=b.j.Aa.BA(),d=g.GP(b.j);GJa(b,d,c);c=c.D;isNaN(c)||g.YS(b,d,"e2el",[c.toFixed(3)])}}g.MC(a.Y)&&a.ya("rawlat",{l:uQ(a.gI,"rawlivelatency").toFixed(3)});a.sN=Date.now()}a.videoData.u&&$z(a.videoData.u)&&(b=mF(a))&&b.videoHeight!==a.dG&&(a.dG=b.videoHeight,AU(a,"a",gMa(a,a.videoData.Xa)))}; gMa=function(a,b){if("auto"===b.j.video.quality&&$z(b.zf())&&a.videoData.Cb)for(var c=g.r(a.videoData.Cb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.dG&&"auto"!==d.j.video.quality)return d.zf();return b.zf()}; jU=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Ua&&a.videoData.j&&(b=TD(a.videoData)?a.Ua.Ha.Cg()||0:a.videoData.j.ra);return Date.now()/1E3-a.getIngestionTime()-b}; rMa=function(a){!a.S("html5_ignore_airplay_events_on_new_video_killswitch")&&a.mediaElement&&a.mediaElement.Cf()&&(a.YA=(0,g.R)());a.Y.cm?g.rr(function(){GU(a)},0):GU(a)}; GU=function(a){if(a.mediaElement)try{a.IB=a.mediaElement.playVideo()}catch(c){tU(a,"err."+c)}if(a.IB){var b=a.IB;b.then(void 0,function(c){if(!(g.V(a.playerState,4)||g.V(a.playerState,256)||a.IB!==b||c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))){var d="promise";c&&c.name&&(d+=";m."+c.name);tU(a,d);a.jL=!0;a.videoData.IP=!0}})}}; tU=function(a,b){g.V(a.playerState,128)||(a.Vb(oH(a.playerState,1028,9)),a.ya("dompaused",{r:b}),a.ea("onAutoplayBlocked"))}; kU=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=kMa(a);var d;null==(d=a.Ua)||d.resume()}else sU(a),a.videoData.Xa&&(c=a.videoData.Xa.vv());b=c;d=a.mediaElement.iz();c=!1;d&&d.equals(b)||(sMa(a,b),c=!0);g.V(a.playerState,2)||(b=a.Tc,b.D||!(0=c&&b<=a}; RMa=function(a){g.V(a.vb.getPlayerState(),64)&&JU(a).isLivePlayback&&5E3>a.Tb.startTimeMs||a.vb.seekTo(.001*a.Tb.startTimeMs,{oe:"application_loopRangeStart"})}; GMa=function(a,b){var c=a.Ta.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b}; dV=function(a,b,c){if(a.me(c)){c=c.getVideoData();if(cV(a))c=b;else{a=a.rd;for(var d=g.r(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Bc===e.Bc){b+=e.Gc/1E3;break}d=b;a=g.r(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Bc===e.Bc)break;var f=e.Gc/1E3;if(fd?e=!0:1=b?b:0;this.j=a=l?function(){return new XV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:k})}:function(m,n){var p=YNa(m,c,d,function(q){var t=n(q),w=q.slotId; q=nW(k);w=rw(e.u.get(),"LAYOUT_TYPE_SURVEY",w);var x={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",fb:"core"},y=new pW(e.j,d),z=new qW(e.j,w),E=new rW(e.j,w),I=new ZNa(e.j);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",qc:new Map,yd:[y,I],Qc:[z],Nc:[],Rc:[E],Wc:[],fb:"core",Ea:new pV([new dG(k),new UF(b),new DG(l/1E3),new GG(q)]),yc:t(x),adLayoutLoggingData:k.adLayoutLoggingData}}); m=XNa(a,c,p.slotId,d,e,m,n);return m instanceof XV?m:[p].concat(g.u(m))}}; hOa=function(a,b,c,d,e){var f=[];try{var k=[];if(c.renderer.linearAdSequenceRenderer)var l=function(w){w=aOa(w.slotId,c,b,e(w),d);k=w.g_;return w.jU}; else if(c.renderer.instreamVideoAdRenderer)l=function(w){var x=w.slotId;w=e(w);var y=c.config.adPlacementConfig,z=bOa(y),E=z.XL;z=z.aM;var I=c.renderer.instreamVideoAdRenderer,J;if(null==I?0:null==(J=I.playerOverlay)?0:J.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var N=cOa(I);J=Math.min(E+1E3*N.videoLengthSeconds,z);z=new KE(0,[N.videoLengthSeconds],J);var aa=N.videoLengthSeconds,K=N.playerVars,sa=N.instreamAdPlayerOverlayRenderer,ia=N.adVideoId, Ca=dOa(c),vb=N.qc;N=N.XK;var Rc=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;x=rw(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var Wa={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",fb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",qc:vb,yd:[new sW(b.j)],Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([new YF(d),new pG(aa),new qG(K),new sG(E),new tG(J),sa&&new ZF(sa),new UF(y),new WF(ia),new VF(z),new yG(Ca),I&&new rG(I),new lG({current:null}),new vG({}),new KG(N)].filter(eOa)), yc:w(Wa),adLayoutLoggingData:Rc}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=fOa(a,d,l);f.push(m);for(var n=g.r(k),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof XV)return t;f.push.apply(f,g.u(t))}}catch(w){return new XV(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:gOa(c)})}return f}; gOa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=b.instreamVideoAdRenderer)?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; aOa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,k=bOa(f),l=k.XL,m=k.aM;k=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==k||!k.length)throw new TypeError("Expected linear ads");var n=[],p={cQ:l,dQ:0,c_:n};k=k.map(function(t){return iOa(a,t,p,c,d,f,e,m)}).map(function(t,w){w=new KE(w,n,m); return t(w)}); var q=k.map(function(t){return t.kU}); return{jU:jOa(c,a,l,q,f,dOa(b),d,m),g_:k.map(function(t){return t.f_})}}; iOa=function(a,b,c,d,e,f,k,l){var m=cOa(b.instreamVideoAdRenderer),n=c.cQ,p=c.dQ,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.cQ=q;c.dQ++;c.c_.push(m.videoLengthSeconds);var t,w,x=null==(t=b.instreamVideoAdRenderer)?void 0:null==(w=t.playerOverlay)?void 0:w.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z=m.playerVars;2<=y.u&&(z.slot_pos=y.j);z.autoplay="1";var E,I;z=m.videoLengthSeconds;var J=m.playerVars, N=m.qc,aa=m.XK,K=m.instreamAdPlayerOverlayRenderer,sa=m.adVideoId,ia=null==(E=b.instreamVideoAdRenderer)?void 0:E.adLayoutLoggingData;E=null==(I=b.instreamVideoAdRenderer)?void 0:I.sodarExtensionData;I=rw(d.u.get(),"LAYOUT_TYPE_MEDIA",a);var Ca={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",fb:"adapter"};y={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",qc:N,yd:[],Qc:[],Nc:[],Rc:[],Wc:[],fb:"adapter",Ea:new pV([new YF(k),new pG(z),new qG(J),new sG(n),new tG(q),new uG(p),new lG({current:null}),K&&new ZF(K), new UF(f),new WF(sa),new VF(y),E&&new rG(E),x&&new JG(x),new vG({}),new KG(aa)].filter(eOa)),yc:e(Ca),adLayoutLoggingData:ia};z=$Na(b.instreamVideoAdRenderer,f,k,y.layoutId,d);return{kU:y,f_:z}}}; cOa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=gr(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e|| (e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,qc:a.pings?ME(a.pings):new Map,XK:LE(a.pings)}}; dOa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; bOa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{XL:b,aM:a}}; lOa=function(a,b,c,d,e,f,k){var l=c.pings;return l?[kOa(a,f,e,function(m){var n=m.slotId;m=k(m);var p=c.adLayoutLoggingData;n=rw(b.u.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",fb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",qc:ME(l),yd:[new tW(b.j,f)],Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([new UF(d)]),yc:m(q),adLayoutLoggingData:p}})]:new XV("VideoAdTrackingRenderer without VideoAdTracking pings filled.", {videoAdTrackingRenderer:c})}; nOa=function(a,b,c,d,e,f,k,l){a=mOa(a,c,f,k,d,function(m){var n=m.slotId;m=l(m);n=rw(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",fb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",qc:q,yd:[new uW(b.j,n)],Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([new xG(e),new UF(c)]),yc:m(p)}}); return a instanceof XV?a:[a]}; pOa=function(a,b,c,d,e,f,k,l){a=oOa(a,c,f,k,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=rw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=vW(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,wW(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=rw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=vW(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,wW(b,n,p))):q.imageOverlayAdContentRenderer?(q=rw(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=wW(b,n,p),n.push(new xW(b.j,q)),n=vW(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new NV("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new NV("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof XV?a:[a]}; sOa=function(a,b,c,d,e,f,k){var l=Number(d.durationMilliseconds);return isNaN(l)?new XV("Expected valid duration for AdActionInterstitialRenderer."):function(m){return qOa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,k(m),function(n){return rOa(a,n,e,function(p,q){var t=p.slotId;p=k(p);t=rw(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return oW(b, t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new bG(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}}; tOa=function(a,b,c,d){if(!c.playerVars)return new XV("No playerVars available in AdIntroRenderer.");var e=gr(c.playerVars);e.autoplay="1";return function(f){var k=f.slotId;f=d(f);k=rw(a.u.get(),"LAYOUT_TYPE_MEDIA",k);var l={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",fb:"adapter"};return{Er:{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",qc:new Map,yd:[],Qc:[],Nc:[],Rc:[],Wc:[],fb:"adapter",Ea:new pV([new wG({}),new UF(b),new lG({current:null}),new qG(e)]),yc:f(l)},Qs:[new yW(a.j,k,"error")],hq:[],Uz:[], Tz:[]}}}; vOa=function(a,b,c,d,e,f,k,l){var m=mW(e);if(!Exa(e))return new XV("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new XV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=UNa(a,b,e,f,c,d,k);return n instanceof XV?n:function(p){return uOa(b,p.slotId,c,m,nW(e),k(p),n,l)}}; wOa=function(a,b,c,d,e,f,k){function l(p){return rOa(a,p,d,m)} function m(p,q){var t=p.slotId;p=k(p);t=rw(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return oW(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new cG(e),f],e.adLayoutLoggingData)} if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new XV("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t= k(p);p=zW(b,p.slotId,c,n,q,new Map,t,l);q=new hG(p.hH);return{Er:{layoutId:p.layoutId,layoutType:p.layoutType,qc:p.qc,yd:[],Qc:[],Nc:[],Rc:[],Wc:[],fb:p.fb,Ea:new pV([].concat(g.u(p.jw),[q])),yc:p.yc,adLayoutLoggingData:p.adLayoutLoggingData},Qs:[],hq:p.Nc,Uz:p.Rc,Tz:p.Wc,wh:p.wh}}}; zOa=function(a,b,c,d,e,f,k,l,m,n,p){c=xOa(c,d,f,k,l,m,n,p);if(c instanceof XV)return c;a=yOa(b,a,k,e,c);return a instanceof XV?a:[].concat(g.u(a.Wh),[a.Yt])}; BOa=function(a,b,c,d,e,f,k,l,m,n,p){b=xOa(b,c,e,f,l,m,n,p);if(b instanceof XV)return b;a=AOa(a,c,f,k,d,l.Df,b);return a instanceof XV?a:a.Wh.concat(a.Yt)}; xOa=function(a,b,c,d,e,f,k,l){var m=AW(c);return m instanceof NV?new XV(m):function(n){var p=new KE(0,[m.Bz]),q=COa(m.playerVars,m.uP,e,l,p);n=f(n);var t=k.get(m.DC.externalVideoId);p=DOa(a,"core",m.DC,b,q,m.Bz,d,p,n,t);return{layout:{layoutId:p.layoutId,layoutType:p.layoutType,qc:p.qc,yd:p.yd,Qc:p.Qc,Nc:p.Nc,Rc:p.Rc,Wc:p.Wc,fb:p.fb,Ea:p.Ea,yc:p.yc,adLayoutLoggingData:p.adLayoutLoggingData},Wh:[]}}}; AW=function(a){if(!a.playerVars)return new NV("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new NV("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=gr(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,T("Expected valid length seconds in player vars but got NaN")); return{DC:a,playerVars:b,uP:a.playerVars,Bz:c}}; COa=function(a,b,c,d,e){a.iv_load_policy=d;b=gr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.vg&&(a.ctrl=c.vg);c.Mg&&(a.ytr=c.Mg);c.lm&&(a.ytrcc=c.lm);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.wi&&(a.vss_credentials_token_type=c.wi),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a}; FOa=function(a,b,c,d,e,f,k,l,m,n,p){a=yOa(b,a,k,e,EOa(b,c,d,f,k,l,m,n,p));return a instanceof XV?a:[].concat(g.u(a.Wh),[a.Yt])}; HOa=function(a,b,c,d,e,f,k,l,m,n,p){b=EOa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=GOa(a,c,f,k),c instanceof XV?d=c:(f=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),k=rw(a.u.get(),"LAYOUT_TYPE_SURVEY",f),a=[].concat(g.u(c.uc),[new BW(a.j,k)]),f=b({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,fb:c.fb,Ob:c.Ob,pc:c.pc,uc:a},{slotId:f,layoutId:k}),d=f instanceof XV?f:{Yt:{slotId:c.slotId,slotType:c.slotType, slotPhysicalPosition:c.slotPhysicalPosition,Ob:c.Ob,pc:c.pc,uc:a,fb:c.fb,Ea:new pV([new zG(f.layout)]),adSlotLoggingData:d},Wh:f.Wh})):d=AOa(a,c,f,k,d,l.Df,b);return d instanceof XV?d:d.Wh.concat(d.Yt)}; EOa=function(a,b,c,d,e,f,k,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),w=t.next();!w.done;w=t.next())if(w=w.value,w.instreamVideoAdRenderer){w=AW(w.instreamVideoAdRenderer);if(w instanceof NV){q=new XV(w);break b}q.push(w.Bz)}}if(q instanceof XV)p=q;else{t=0;w=[];for(var x=[],y=[],z=[],E=[],I=[],J=new mG({current:null}),N=[],aa=g.r(d),K=aa.next();!K.done;K=aa.next())if(K=K.value,K.adIntroRenderer){K=tOa(b,c,K.adIntroRenderer,k);if(K instanceof XV){p=K;break a}K=K(n);w.push(K.Er);x=[].concat(g.u(K.Qs), g.u(x));y=[].concat(g.u(K.hq),g.u(y));K.wh&&(N=[K.wh].concat(g.u(N)))}else if(K.instreamVideoAdRenderer){var sa=AW(K.instreamVideoAdRenderer);if(sa instanceof NV){p=new XV(sa);break a}var ia=new KE(t,q);K=b;var Ca=sa.DC,vb=COa(sa.playerVars,sa.uP,f,m,ia),Rc=k(n),Wa=l.get(sa.DC.externalVideoId);sa=DOa(K,"adapter",Ca,c,vb,sa.Bz,e,ia,Rc,Wa);ia=sa.Qc;Ca.isCritical&&(ia=[new yW(K.j,sa.layoutId,"error")].concat(g.u(ia)));K={layoutId:sa.layoutId,layoutType:sa.layoutType,qc:sa.qc,yd:[],Qc:[],Nc:[],Rc:[], Wc:[],fb:sa.fb,Ea:sa.Ea,yc:sa.yc,adLayoutLoggingData:sa.adLayoutLoggingData};Ca=ia;sa=sa.Nc;t++;w.push(K);x=[].concat(g.u(Ca),g.u(x));y=[].concat(g.u(sa),g.u(y))}else if(K.adActionInterstitialRenderer){K=sOa(a,b,c,K.adActionInterstitialRenderer,e,t,k);if(K instanceof XV){p=K;break a}K=K(n);w.push(K.Er);x=[].concat(g.u(K.Qs),g.u(x));y=[].concat(g.u(K.hq),g.u(y));K.wh&&(N=[K.wh].concat(g.u(N)))}else if(K.instreamSurveyAdRenderer){if(void 0===p){p=new XV("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:K.instreamSurveyAdRenderer});break a}K=vOa(a,b,c,e,K.instreamSurveyAdRenderer,J,k,p);if(K instanceof XV){p=K;break a}K=K(n);w.push(K.Er);K.wh&&N.push(K.wh);x=[].concat(g.u(K.Qs),g.u(x));y=[].concat(g.u(K.hq),g.u(y));z=[].concat(g.u(K.Uz),g.u(z));E=[].concat(g.u(K.Tz),g.u(E));I=[J].concat(g.u(I))}else if(K.surveyTextInterstitialRenderer){K=wOa(a,b,c,e,K.surveyTextInterstitialRenderer,J,k);if(K instanceof XV){p=K;break a}K=K(n);w.push(K.Er);K.wh&&N.push(K.wh);y=[].concat(g.u(K.hq), g.u(y))}else{p=new XV("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={d_:w,Qc:x,Rc:z,Wc:E,Nc:y,jw:I,Wh:N}}}p instanceof XV?n=p:(z=n.slotId,q=p.d_,t=p.Qc,w=p.Nc,x=p.Rc,y=p.jw,n=k(n),z=rw(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),E={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",fb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qc:new Map,yd:[new uW(b.j,z)],Qc:t,Nc:w,Rc:x,Wc:[],fb:"core",Ea:new pV([new nG(q)].concat(g.u(y))),yc:n(E)}, Wh:p.Wh});return n}}; JOa=function(a,b,c,d,e,f,k){if(!Exa(c))return new XV("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=mW(c);if(0>=l)return new XV("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new mG({current:null}),n=UNa(a,b,c,m,d,f,k);return IOa(a,d,f,l,e,function(p,q){var t=p.slotId,w=nW(c);p=k(p);t=rw(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fb:"core"},y=n(t,q); X(y.Ea,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");w=[new UF(d),new EG(l),new GG(w),new HG(!0),m,new iG("LAYOUT_TYPE_SURVEY")];return{UV:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qc:new Map,yd:[new uW(b.j,t)],Qc:[new qW(b.j,q.layoutId)],Nc:[],Rc:[new rW(b.j,q.layoutId)],Wc:[],fb:"core",Ea:new pV(w),yc:p(x)},rV:y}})}; KOa=function(a){if(!INa(a))return!1;var b=a.adVideoStart.adMessageRenderer;return b?a.linearAd.instreamVideoAdRenderer&&DF(b)?!0:(T("Invalid Sandwich with notify"),!1):!1}; LOa=function(a){if(null==a.linearAds)return!1;var b;a=null==(b=a.adStart)?void 0:b.adMessageRenderer;return a?DF(a)?!0:(T("Invalid LASR with notify"),!1):!1}; CW=function(a,b,c,d,e,f,k){this.u=a;this.j=b;this.Ka=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===k?1:k}; tqa=function(a,b,c,d,e,f,k){var l=[];if(DW(a.Ka.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")){if(0===b.length&&0===c.length)return l}else if(0===b.length)return l;b=b.filter(jW);for(var m=c.filter(jW),n=new Map,p=new Map,q=g.r(b),t=q.next();!t.done;t=q.next())(t=t.value.renderer.remoteSlotsRenderer)&&t.hostElementId&&p.set(t.hostElementId,t);q=g.r(b);for(t=q.next();!t.done;t=q.next()){t=t.value;var w=MOa(a,n,t,d,e,f,k,p);w instanceof XV?T(w,void 0,void 0,{renderer:t.renderer, config:t.config.adPlacementConfig,kind:t.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):l.push.apply(l,g.u(w))}DW(a.Ka.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&(e=NOa(a,m,d,k,p,n),l.push.apply(l,g.u(e)));if(null===a.D||f&&!k.OL){var x,y,z;a=k.Df&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(x=b[0].config)?void 0:null==(y=x.adPlacementConfig)?void 0:y.kind)&&(null==(z=b[0].renderer)?void 0:z.adBreakServiceRenderer);if(!l.length&&!a){var E, I,J,N;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null==(E=b[0])?void 0:null==(I=E.config)?void 0:null==(J=I.adPlacementConfig)?void 0:J.kind,renderer:null==(N=b[0])?void 0:N.renderer})}return l}x=c.filter(jW);l.push.apply(l,g.u(QNa(n,x,a.u.get(),a.D,d,a.Ka.get())));if(!l.length){var aa,K,sa,ia;T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length, contentCpn:d,daiEnabled:f,"first APR kind":null==(aa=b[0])?void 0:null==(K=aa.config)?void 0:null==(sa=K.adPlacementConfig)?void 0:sa.kind,renderer:null==(ia=b[0])?void 0:ia.renderer})}return l}; NOa=function(a,b,c,d,e,f){function k(t){return vV(a.B.get(),t)} var l=[];b=g.r(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&KOa(p)?(q=p.adVideoStart.adMessageRenderer,p=p.linearAd.instreamVideoAdRenderer,kW(f,n,m.config.adPlacementConfig.kind),m=zOa(q.layout.layoutId,a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,k,e,a.loadPolicy,a.Ka.get()),m instanceof XV?T(m):l.push.apply(l,g.u(m))):q&&LOa(q)&&(kW(f,n,m.config.adPlacementConfig.kind),m=FOa(q.adStart.adMessageRenderer.layout.layoutId, a.u.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,c,d,k,e,a.loadPolicy,a.Ka.get()),m instanceof XV?T(m):l.push.apply(l,g.u(m)))}return l}; MOa=function(a,b,c,d,e,f,k,l){function m(x){return vV(a.B.get(),x)} var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,w=k.OL&&"AD_PLACEMENT_KIND_START"===q;w=f&&!w;if(null!=n.adsEngagementPanelRenderer)return lW(b,c.elementId,q,n.adsEngagementPanelRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.adsEngagementPanelRenderer,J=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new MF(I),y,z,I.impressionPings,J,n.adsEngagementPanelRenderer.adLayoutLoggingData)}),[]; if(null!=n.actionCompanionAdRenderer)lW(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.actionCompanionAdRenderer,J=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new LF(I),y,z,I.impressionPings,J,n.actionCompanionAdRenderer.adLayoutLoggingData)}); else if(n.imageCompanionAdRenderer)lW(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.imageCompanionAdRenderer,J=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new QF(I),y,z,I.impressionPings,J,n.imageCompanionAdRenderer.adLayoutLoggingData)}); else if(n.shoppingCompanionCarouselRenderer)lW(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var E=a.j.get(),I=n.shoppingCompanionCarouselRenderer,J=vV(a.B.get(),x);return EW(E,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new RF(I),y,z,I.impressionPings,J,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); else if(n.adBreakServiceRenderer){if(!MNa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return LNa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.C)return new XV("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");k.Df||T("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(k.Df),clientPlaybackNonce:k.clientPlaybackNonce}); OOa(a.C,{adPlacementRenderer:c,contentCpn:d,EL:e})}else{if(n.clientForecastingAdRenderer)return nOa(a.u.get(),a.j.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return pOa(a.u.get(),a.j.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&w)return hOa(a.u.get(),a.j.get(),c,d,m);if(n.linearAdSequenceRenderer&&!w)return kW(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?HOa(a.u.get(),a.j.get(),p,t,n.linearAdSequenceRenderer.linearAds, d,e,k,m,l,a.loadPolicy,a.Ka.get()):new XV("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!w)return kW(b,n,q),BOa(a.u.get(),a.j.get(),p,t,n.instreamVideoAdRenderer,d,e,k,m,l,a.loadPolicy,a.Ka.get());if(n.instreamSurveyAdRenderer)return JOa(a.u.get(),a.j.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return INa(n.sandwichedLinearAdRenderer)?HOa(a.u.get(),a.j.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart, n.sandwichedLinearAdRenderer.linearAd],d,e,k,m,l,a.loadPolicy,a.Ka.get()):new XV("Received invalid SandwichedLinearAdRenderer.");if(null!=n.videoAdTrackingRenderer)return lOa(a.u.get(),a.j.get(),n.videoAdTrackingRenderer,p,t,d,m)}}return[]}; FW=function(a){g.G.call(this);this.j=a}; jw=function(a,b,c,d){a.j().Vh(b,d);c=c();a=a.j();GW(a.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;XG(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);XG(d.Xb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.kb(c.slotId))throw new XV("Slot ID was empty");if(LV(e,c))throw new XV("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Ob.triggerType});if(!e.je.xm.has(c.slotType))throw new XV("No fulfillment adapter factory registered for slot of type: "+ c.slotType);if(!e.je.hn.has(c.slotType))throw new XV("No SlotAdapterFactory registered for slot of type: "+c.slotType);eW(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Ob?[c.Ob]:[]);eW(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.pc);eW(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.uc);var f=d.j,k=c.slotType+"_"+c.slotPhysicalPosition,l=ZV(f,k);if(LV(f,c))throw new XV("Duplicate slots not supported");l.set(c.slotId,new DNa(c));f.j.set(k,l)}catch(ia){T(ia,c,void 0,void 0,ia.Xp);break a}LV(d.j,c).J=!0;try{var m=d.j,n=LV(m, c),p=c.Ob,q=m.je.oi.get(p.triggerType);q&&(q.dj("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ra.set(p.triggerId,q));for(var t=g.r(c.pc),w=t.next();!w.done;w=t.next()){var x=w.value,y=m.je.oi.get(x.triggerType);y&&(y.dj("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Z.set(x.triggerId,y))}for(var z=g.r(c.uc),E=z.next();!E.done;E=z.next()){var I=E.value,J=m.je.oi.get(I.triggerType);J&&(J.dj("TRIGGER_CATEGORY_SLOT_EXPIRATION",I,c,null),n.X.set(I.triggerId,J))}var N=m.je.xm.get(c.slotType).get().ye(m.B, c);n.K=N;var aa=m.je.hn.get(c.slotType).get().ye(m.D,c);aa.init();n.u=aa}catch(ia){T(ia,c,void 0,void 0,ia.Xp);IV(d,c,!0);break a}XG(d.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.uh(c);for(var K=g.r(d.Ud),sa=K.next();!sa.done;sa=K.next())sa.value.uh(c);QV(d,c,!1)}}; HW=function(a,b,c,d){this.zp=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; IW=function(a,b,c,d){g.G.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.j=new Map;d.get().addListener(this);g.Bf(this,function(){d.get().removeListener(e)})}; qqa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.pc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof HW?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Np(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)}; JW=function(){g.G.apply(this,arguments);this.Ni=!0;this.ai=new Map;this.j=new Map}; POa=function(a,b){a=g.r(a.ai.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; QOa=function(a,b){a=g.r(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.kb(b)),layoutId:b})}; BW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; yW=function(a,b,c){this.Pe=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; pW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; sW=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; KW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; LW=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; uW=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; tW=function(a,b){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; ROa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)}; ZNa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; qW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; rW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; xW=function(a,b){this.durationMs=45E3;this.Pe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; SOa=function(a){return[new gG(a.Ju),new ZF(a.instreamAdPlayerOverlayRenderer),new kG(a.aP),new UF(a.adPlacementConfig),new pG(a.videoLengthSeconds),new DG(a.qG)]}; TOa=function(a,b,c,d,e,f){a=c.NF?c.NF:rw(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var k={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",fb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qc:new Map,yd:[new pW(function(l){return tw(f,l)},c.Ju)], Qc:[],Nc:[],Rc:[],Wc:[],fb:b,Ea:d,yc:e(k),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; MW=function(a){var b=this;this.u=a;this.j=function(c){return tw(b.u.get(),c)}}; UOa=function(a,b,c,d,e,f){c=new pV([new $F(c),new UF(d)]);b=rw(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",fb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",qc:new Map,yd:[new pW(function(k){return tw(a.u.get(),k)},e)], Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:c,yc:f(d),adLayoutLoggingData:void 0}}; NW=function(a,b,c,d,e){return TOa(b,c,d,new pV(SOa(d)),e,a.u.get())}; VOa=function(a,b,c,d,e){var f=SOa(d);f.push(new SF(d.CT));f.push(new TF(d.ET));return TOa(b,c,d,new pV(f),e,a.u.get())}; EW=function(a,b,c,d,e,f,k,l,m){b=rw(a.u.get(),c,b);var n={layoutId:b,layoutType:c,fb:"core"},p=new Map;k&&p.set("impression",k);return{layoutId:b,layoutType:c,qc:p,yd:[new uW(a.j,b),new KW(a.j,e)],Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([d,new UF(f),new gG(e)]),yc:l(n),adLayoutLoggingData:m}}; wW=function(a,b,c){var d=[];d.push(new LW(a.j,c));b&&d.push(b);return d}; vW=function(a,b,c,d,e,f,k){var l={layoutId:b,layoutType:c,fb:"core"};return{layoutId:b,layoutType:c,qc:new Map,yd:k,Qc:[new BW(a.j,b)],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([new PF(d),new UF(e)]),yc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; oW=function(a,b,c,d,e,f,k,l){var m={layoutId:b,layoutType:f,fb:"core"};return{layoutId:b,layoutType:f,qc:new Map,yd:[new pW(a.j,c)],Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([new UF(d)].concat(g.u(k))),yc:e(m),adLayoutLoggingData:l}}; qOa=function(a,b,c,d,e,f,k,l,m,n){a=zW(a,b,c,d,e,f,k,l,m,n);return{Er:{layoutId:a.layoutId,layoutType:a.layoutType,qc:a.qc,yd:[],Qc:[],Nc:[],Rc:[],Wc:[],fb:a.fb,Ea:new pV(a.jw),yc:a.yc,adLayoutLoggingData:a.adLayoutLoggingData},Qs:a.Qc,hq:a.Nc,Uz:a.Rc,Tz:a.Wc,wh:a.wh}}; uOa=function(a,b,c,d,e,f,k,l){b=zW(a,b,c,d,e,new Map,f,function(m){return k(m,l)},void 0); a=new rW(a.j,b.hH);c=new hG(b.hH);d=new iG("LAYOUT_TYPE_SURVEY");return{Er:{layoutId:b.layoutId,layoutType:b.layoutType,qc:b.qc,yd:[],Qc:[],Nc:[],Rc:[],Wc:[],fb:b.fb,Ea:new pV([].concat(g.u(b.jw),[c,d])),yc:b.yc,adLayoutLoggingData:b.adLayoutLoggingData},Qs:b.Qc,hq:b.Nc,Uz:[].concat(g.u(b.Rc),[a]),Tz:b.Wc,wh:b.wh}}; zW=function(a,b,c,d,e,f,k,l,m,n){b=rw(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",fb:"adapter"};l=l(b);var q=X(l.Ea,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new UF(c),new EG(d),new GG(e)];n&&c.push(new uG(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qc:f,yd:[],Qc:[new qW(a.j,q)],Nc:[],Rc:[],Wc:[],fb:"adapter", jw:c,yc:k(p),adLayoutLoggingData:m,wh:l,hH:q}}; DOa=function(a,b,c,d,e,f,k,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",fb:b};d=[new UF(d),new VF(l),new WF(c.externalVideoId),new YF(k),new ZF(c.playerOverlay.instreamAdPlayerOverlayRenderer),new GG({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new qG(e),new lG({current:null}),new pG(f)];(e=c.playerUnderlay)&&d.push(new $F(e));e=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)? f:rw(a.u.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new hG(f));d.push(new jG(e));d.push(new uG(l.j));c.adNextParams&&d.push(new NF(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new aG(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new OF(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new FG(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new rG(c.sodarExtensionData));n&&d.push(new CG(n));d.push(new KG(LE(c.pings)));return{layoutId:p, layoutType:"LAYOUT_TYPE_MEDIA",qc:ME(c.pings),yd:[new uW(a.j,p)],Qc:c.skipOffsetMilliseconds?[new qW(a.j,f)]:[],Nc:[new qW(a.j,f)],Rc:[],Wc:[],fb:b,Ea:new pV(d),yc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}}; jOa=function(a,b,c,d,e,f,k,l){d.every(function(n){return CF(n,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout"); b=rw(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var m={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",fb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qc:new Map,yd:[new sW(a.j)],Qc:[],Nc:[],Rc:[],Wc:[],fb:"core",Ea:new pV([new sG(c),new tG(l),new nG(d),new UF(e),new yG(f),new vG({})]),yc:k(m)}}; eOa=function(a){return null!=a}; OW=function(a,b,c){this.zp=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; PW=function(a,b,c){this.Pe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; QW=function(a,b){this.Pe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; WOa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; RW=function(a,b,c){this.zp=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; SW=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; TW=function(a,b){this.Tg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; UW=function(a,b){this.Tg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; VW=function(a,b){this.Tg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; WW=function(a,b){this.Tg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; XW=function(a,b){this.Tg=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; JNa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Fl:new Np(-0x8000000000000,-0x8000000000000),SB:d},null!=c&&(d.Ys=new Np(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Fl:new Np(0x7ffffffffffff,0x8000000000000),SB:d},null!=c&&(d.Ys=new Np(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new XV("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Fl:new Np(a,e),SB:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Ys=new Np(a,e)}return d;default:return new XV("AdPlacementKind not supported in convertToRange.", {kind:e,adPlacementConfig:a})}}; YW=function(a){var b=this;this.u=a;this.j=function(c){return tw(b.u.get(),c)}}; KNa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var k=qw(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Ys&&d.Ys.start!==d.Fl.start&&l.push(new HW(a.j,c,new Np(d.Ys.start,d.Fl.start),!1));l.push(new HW(a.j,c,new Np(d.Fl.start,d.Fl.end),d.SB));d={getAdBreakUrl:b.getAdBreakUrl,tP:d.Fl.start,sP:d.Fl.end};b=new WW(a.j,k);f=[new AG(d)].concat(g.u(f));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Ob:b,pc:l,uc:[new tW(a.j,c),new UW(a.j,k),new VW(a.j,k)],fb:"core",Ea:new pV(f), adSlotLoggingData:e}}; YOa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(XOa(a,b,e.value));return d}; XOa=function(a,b,c){return null!=c.Tg&&c.Tg===a?c.clone(b):c}; TNa=function(a,b,c,d,e){return ZOa(a,b,c,d,e)}; rOa=function(a,b,c,d){var e=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER");return ZOa(a,e,b,c,d)}; ZOa=function(a,b,c,d,e){var f=new QW(a.j,c),k=[new TW(a.j,b)];a=[new UW(a.j,b),new tW(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ob:f,pc:k,uc:a,fb:"core",Ea:new pV([new zG(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Ob:f,pc:k,uc:a},c))]),adSlotLoggingData:void 0}}; IOa=function(a,b,c,d,e,f){var k=qw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=rw(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=ZW(a,b,c,d);d=[new TW(a.j,k)];a=[new UW(a.j,k),new tW(a.j,c),new BW(a.j,m)];if(b instanceof XV)return b;f=f({slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fb:"core",Ob:b,pc:d,uc:a},{slotId:l,layoutId:m});l=f.rV;return[{slotId:k,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ob:b,pc:d,uc:a,fb:"core",Ea:new pV([new zG(f.UV)]), adSlotLoggingData:e},l]}; $Oa=function(a,b,c,d,e){e=e?e:qw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,c);var f=[new TW(a.j,e)];a=[new tW(a.j,b),new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ob:c,pc:f,uc:a,fb:"core",Ea:new pV([new zG(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Ob:c,pc:f,uc:a}))])}}; aPa=function(a,b,c,d){var e=qw(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new QW(a.j,c);var f=[new TW(a.j,e)];a=[new tW(a.j,b),new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ob:c,pc:f,uc:a,fb:"core",Ea:new pV([new zG(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,fb:"core",Ob:c,pc:f,uc:a}))])}}; oOa=function(a,b,c,d,e,f){b=ZW(a,b,c,d);if(b instanceof XV)return b;var k=b instanceof HW?new RW(a.j,c,b.j):null;d=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new TW(a.j,d)];a=[new tW(a.j,c),new UW(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Ob:b,pc:l,uc:a},k);return f instanceof NV?new XV(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ob:b,pc:l,uc:a,fb:"core",Ea:new pV([new zG(f)]),adSlotLoggingData:e}}; YNa=function(a,b,c,d){var e=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new QW(a.j,c);var f=[new TW(a.j,e)],k=[new UW(a.j,e),new tW(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Ob:c,pc:f,uc:k};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ob:c,pc:[new TW(a.j,e)],uc:[new tW(a.j,b),new UW(a.j,e)],fb:"core",Ea:new pV([new zG(d(f))])}}; WNa=function(a,b,c,d,e){var f=qw(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new PW(a.j,d,c);d=[new TW(a.j,f)];a=[new tW(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ob:c,pc:d,uc:a,fb:"core",Ea:new pV([new zG(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,fb:"core",Ob:c,pc:d,uc:a}))])}}; PNa=function(a,b,c,d,e,f){var k=qw(a.u.get(),b);return bPa(a,k,b,new QW(a.j,d),c,e,d,f)}; kOa=function(a,b,c,d){var e=qw(a.u.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new nw(a.j,b);var f=[new TW(a.j,e)];a=[new UW(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,Ob:b,pc:f,uc:a,fb:"core",Ea:new pV([new zG(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,fb:"core",Ob:b,pc:f,uc:a}))]),adSlotLoggingData:c}}; ONa=function(a,b,c,d,e,f,k){return bPa(a,c,b,new SW(a.j,c),d,f,e,k)}; fOa=function(a,b,c){var d=qw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new WOa(a.j),f=[new XW(a.j,d)];a=[new tW(a.j,b)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ob:e,pc:f,uc:a,fb:"core",Ea:new pV([new zG(c({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,fb:"core",Ob:e,pc:f,uc:a})),new vG({})])}}; yOa=function(a,b,c,d,e){b=new yW(a.j,b,"normal");a=cPa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Ob:a.Ob,pc:a.pc,uc:a.uc,fb:a.fb});return e instanceof XV?e:{Yt:Object.assign({},a,{Ea:new pV([new zG(e.layout)]),adSlotLoggingData:d}),Wh:e.Wh}}; AOa=function(a,b,c,d,e,f,k){a=GOa(a,b,c,d);if(a instanceof XV)return a;k=k({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Ob:a.Ob,pc:a.pc,uc:a.uc,fb:a.fb});if(k instanceof XV)return k;b=[new zG(k.layout)];f&&b.push(new IG({}));return{Yt:{slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,Ob:a.Ob,pc:a.pc,uc:a.uc,fb:a.fb,Ea:new pV(b),adSlotLoggingData:e},Wh:k.Wh}}; cPa=function(a,b,c){var d=qw(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new TW(a.j,d)];a=[new UW(a.j,d),new tW(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ob:b,pc:e,uc:a,fb:"core"}}; GOa=function(a,b,c,d){b=ZW(a,b,c,d);return b instanceof XV?b:cPa(a,b,c)}; mOa=function(a,b,c,d,e,f){var k=qw(a.u.get(),"SLOT_TYPE_FORECASTING");b=ZW(a,b,c,d);if(b instanceof XV)return b;d=[new TW(a.j,k)];a=[new UW(a.j,k),new tW(a.j,c)];return{slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ob:b,pc:d,uc:a,fb:"core",Ea:new pV([new zG(f({slotId:k,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,fb:"core",Ob:b,pc:d,uc:a}))]),adSlotLoggingData:e}}; dPa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new nw(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=JNa(b,d),a instanceof XV?a:e(a.Fl,f);case "AD_PLACEMENT_KIND_END":return new OW(a.j,c,f);default:return new XV("Cannot construct entry trigger",{kind:b.kind})}}; ZW=function(a,b,c,d){return dPa(a,b,c,d,function(e,f){return new HW(a.j,c,e,f)})}; bPa=function(a,b,c,d,e,f,k,l){var m=[new XW(a.j,b)];a=[new tW(a.j,e),new UW(a.j,b),new yW(a.j,k,"error")];return{slotId:b,slotType:c,slotPhysicalPosition:1,Ob:d,pc:m,uc:a,fb:"core",Ea:new pV([new zG(l({slotId:b,slotType:c,slotPhysicalPosition:1,fb:"core",Ob:d,pc:m,uc:a}))]),adSlotLoggingData:f}}; $W=function(a,b){g.G.call(this);this.Ka=a;this.u=b;this.eventCount=0}; XG=function(a,b,c){GW(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; MV=function(a,b,c,d){GW(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; vNa=function(a,b,c,d){var e=a.Ka.get();(e.I.V().S("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.V().S("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&GW(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; GW=function(a,b,c,d,e,f,k,l,m,n){try{if(!ePa(a)&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=uV(a.u.get()),q=fPa(a,p,b,c,d,e,f,k,l,m,n);g.xs("adsClientStateChange",{adsClientEvent:q})}}catch(t){g.Nr(g.Pr(),function(){return void T("PACF log error",f,k,{error:t})})}}; ePa=function(a){var b=a.Ka.get();return!(b.I.V().S("html5_enable_ads_client_monitoring_log_live_infra")||(g.BC(b.I.V())?b.I.V().S("html5_enable_ads_client_monitoring_log_tv"):b.I.V().S("html5_enable_ads_client_monitoring_log_web")))||a.Ka.get().I.V().S("html5_disable_client_tmp_logs")}; fPa=function(a,b,c,d,e,f,k,l,m,n,p){c={eventType:c,eventOrder:++a.eventCount};var q={};k&&(q.slotData=sV(b,k));l&&(q.layoutData=jNa(b,l));m&&(q.triggerData=rV(m.trigger,m.category));d&&(q.opportunityData=kNa(b,d,e,f));b={organicPlaybackContext:{contentCpn:kw(a.j.get(),1).clientPlaybackNonce}};b.organicPlaybackContext.isLivePlayback=kw(a.j.get(),1).Df;var t;b.organicPlaybackContext.isMdxPlayback=null==(t=kw(a.j.get(),1))?void 0:t.isMdxPlayback;var w;if(a=null==(w=kw(a.j.get(),2))?void 0:w.clientPlaybackNonce)b.adVideoPlaybackContext= {adVideoCpn:a};b&&(q.externalContext=b);c.adClientData=q;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);p&&(c.serializedAdServingData=p.serializedAdServingDataEntry);return c}; aX=function(a,b,c){$W.call(this,a,b);this.j=c}; bX=function(){this.j=new Map}; cX=function(a,b,c,d,e){g.G.call(this);this.I=a;this.B=b;this.Ga=c;this.C=d;this.u=e;this.listeners=[];var f=new $u(this);g.H(this,f);f.T(a,"internalAbandon",this.QG);g.Bf(this,function(){g.bv(f)})}; dX=function(a){g.G.call(this);this.I=a;this.j=new Map;this.u=new $u(this);g.H(this,this.u);this.u.T(this.I,g.Ew("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.Fw("ad"),this.onCueRangeExit,this)}; gPa=function(a,b,c,d,e){g.Cw.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; eX=function(a){this.I=a}; fX=function(a){this.I=a}; DW=function(a,b){return a.I.V().S(b)}; gX=function(a){var b,c,d;return(null==(b=a.I.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1}; dW=function(a){return a.I.V().S("html5_recover_from_non_fatal_errors_in_player_bytes")}; RV=function(a){return g.MC(a.I.V())?a.I.V().S("html5_enable_vod_lsar_ivar_pacf_unplugged"):AC(a.I.V())?a.I.V().S("html5_enable_non_notify_composite_vod_lsar_pacf"):g.BC(a.I.V())?!0:!1}; hPa=function(a){return a.I.V().S("html5_recognize_predict_start_cue_point")}; hX=function(a){return a.I.V().S("html5_enable_common_timer_for_survey_web")}; iPa=function(a){return a.I.V().experiments.kb("enable_desktop_player_underlay")}; jPa=function(a){return a.I.V().experiments.kb("html5_disable_lidar")}; iX=function(a,b){this.Ga=a;this.I=b;this.j=new Map;JE().subscribe("adactiveviewmeasurable",this.Ex,this);JE().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Dx,this);JE().subscribe("adviewableimpression",this.Fx,this);JE().subscribe("adaudioaudible",this.Bx,this);JE().subscribe("adaudiomeasurable",this.Cx,this)}; kX=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?T("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),gia(Nl(dp),c),Swa(JE(),b,{Lw:function(){return d?{currentTime:a.Ga.get().getCurrentTimeSec(2,!1),duration:d,Ic:2===a.Ga.get().getPresentingPlayerType()&&1===jX(a.Ga.get(),2),uha:!1,vha:!0,volume:a.Ga.get().isMuted()?0:a.Ga.get().getVolume()/100}:{}}}))}; lX=function(a,b){a.j.has(b)?(a.j.delete(b),delete JE().j[b]):T("Unexpected unregistration of layout in LidarApi")}; mX=function(a,b,c){this.B=c;this.C=a;this.D=b}; nX=function(a,b,c,d){var e=void 0===e?new mX(function(){var f=a.getVideoData(1);return f?g.uE(f):""},function(){return a.V().pageId},function(f){return a.V().S(f)}):e; this.I=a;this.u=b;this.B=c;this.C=d;this.Wp=e;this.oC=null;this.j=new Map;this.Xh=new bF(e);this.D=a.V().experiments.kb("html5_disable_lidar")}; lPa=function(a,b,c,d){d=void 0===d?[]:d;var e=QOa(a.u.get(),c);e?(c=oX(a,kPa(e),e),b.hasOwnProperty("baseUrl")?a.Wp.send(b,c):a.Xh.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; pX=function(a,b){g.xs("adsClientStateChange",b)}; qX=function(a,b){a.j.has(b.Ow())?T("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Ow(),b)}; rX=function(a,b){a.j.delete(b.Ow())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; kPa=function(a){var b=X(a.Ea,"metadata_type_ad_placement_config");a=X(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,LN:a}}; oX=function(a,b,c,d){var e=c?mPa(a):{};c=c?nPa(a,c.layoutId):{};var f=a.I.V().S("enable_macro_substitution_on_html5")?oPa(a):{},k={},l={};d=Object.assign({},XE(a.I,d),$wa(b.adPlacementConfig),(k.SLOT_POS=WE(function(){return(b.LN||0).toString()}),k),c,e,f,(l.FINAL=WE(function(){return"1"}),l.AD_CPN=WE(function(){var m; return(null==(m=kw(a.C.get(),2))?void 0:m.clientPlaybackNonce)||""}),l)); e={};c=g.r(Object.values(pPa));for(f=c.next();!f.done;f=c.next())f=f.value,k=d[f],null!=k&&(e[f]=k.toString());return e}; mPa=function(a){var b={},c,d=null==(c=a.oC)?void 0:qPa(c);null!=d&&(b.SURVEY_ELAPSED_MS=WE(function(){return Math.round(1E3*d).toString()})); b.SURVEY_LOCAL_TIME_EPOCH_S=WE(function(){return Math.round(Date.now()/1E3).toString()}); return b}; nPa=function(a,b){a=a.j.get(b);if(!a)return{};a=a.cF();if(!a)return{};b={};return b.YT_ERROR_CODE=a.GC.toString(),b.ERRORCODE=a.Qy.toString(),b.ERROR_MSG=a.errorMessage,b}; oPa=function(a){var b={},c=a.I.getVideoData(1);b.ASR=WE(function(){var d;return null!=(d=null==c?void 0:c.wj)?d:null}); b.EI=WE(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null}); return b}; sX=function(a,b,c){g.G.call(this);this.I=a;this.j=b;this.Ka=c;this.listeners=[];this.hG=null;this.bE=new Map;b=new g.cA(this);g.H(this,b);b.T(a,"videodatachange",this.dZ);b.T(a,"serverstitchedvideochange",this.zY);this.kq=kw(this)}; kw=function(a,b){var c=a.I.getVideoData(b);return c?rPa(a,c,b||a.I.getPresentingPlayerType(!0)):null}; sPa=function(a,b,c){var d=rPa(a,b,c);a.kq=d;a.listeners.forEach(function(e){e.FO(d)})}; rPa=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,k=b.Bc,l=b.title,m=b.vg,n=b.Mg,p=b.isMdxPlayback,q=b.wi,t=b.mdxEnvironment,w=b.Al,x=b.El,y=b.fq,z=b.videoId||"",E=b.profilePicture||"",I=b.sj||"";b=b.lm||void 0;k=a.j.get().j.get(k)||{layoutId:null,slotId:null};var J=a.I.getVideoData(1),N=J.Df();J=J.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var aa,K,sa=(null==J?void 0:null==(aa=J.playerConfig)?void 0:null==(K=aa.daiConfig)?void 0:K.enableDai)||!1,ia, Ca;aa=(null==J?void 0:null==(ia=J.playerConfig)?void 0:null==(Ca=ia.daiConfig)?void 0:Ca.enablePreroll)||!1;return Object.assign({},k,{videoId:z,author:d,clientPlaybackNonce:e,playbackDurationMs:c,EL:a,daiEnabled:sa,OL:aa,isListed:f,Df:N,profilePicture:E,title:l,sj:I,vg:m,Mg:n,lm:b,isMdxPlayback:p,wi:q,mdxEnvironment:t,Al:w,El:x,fq:y})}; tX=function(a,b){g.G.call(this);this.I=a;this.j=b;this.listeners=[];this.mq=function(){T("Called 'doUnlockPreroll' before it's initialized.")}; b=new $u(this);var c=new g.cA(this);g.H(this,c);g.H(this,b);b.T(a,"progresssync",this.cY);b.T(a,"presentingplayerstatechange",this.TX);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.pg);b.T(a,"resize",this.xb);c.T(a,g.Ew("appad"),this.Xj)}; uX=function(a,b){var c;b=null!=(c=a.j.get().bE.get(b))?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a=.25*d||c)oY(a.j,"first_quartile"),JY(a,"unmuted_first_quartile");if(b>=.5*d||c)oY(a.j,"midpoint"),JY(a,"unmuted_midpoint");if(b>=.75*d||c)oY(a.j,"third_quartile"),JY(a,"unmuted_third_quartile");a=a.Va;b*=1E3;if(c=a.J()){for(;a.Ce&&k.Mu(c,e-d);return c}; mQa=function(a,b){var c=X(b.Ea,"metadata_type_sodar_extension_data");if(c)try{xPa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}}; nQa=function(a,b,c,d,e,f){c=new g.pF(c,new g.kH);qZ(a,b,c,d,e,!1,f)}; qZ=function(a,b,c,d,e,f,k){f=void 0===f?!0:f;FY(c)&&GY(e,0,null)&&(!qY(a,"impression")&&k&&k(),oY(a,"impression"));qY(a,"impression")&&(g.rF(c,4)&&!g.rF(c,2)&&a.mf("pause"),0>qF(c,4)&&!(0>qF(c,2))&&a.mf("resume"),g.rF(c,16)&&.5<=e&&a.mf("seek"),f&&g.rF(c,2)&&rZ(a,c.state,b,d,e))}; rZ=function(a,b,c,d,e,f){if(qY(a,"impression")){var k=1>=Math.abs(d-e);sZ(a,b,k?d:e,c,d,f);k&&oY(a,"complete")}}; sZ=function(a,b,c,d,e,f){pY(a,1E3*c);0>=e||0>=c||(null==b?0:g.V(b,16))||(null==b?0:g.V(b,32))||(GY(c,.25*e,d)&&(f&&!qY(a,"first_quartile")&&f("first"),oY(a,"first_quartile")),GY(c,.5*e,d)&&(f&&!qY(a,"midpoint")&&f("second"),oY(a,"midpoint")),GY(c,.75*e,d)&&(f&&!qY(a,"third_quartile")&&f("third"),oY(a,"third_quartile")))}; oQa=function(a,b){qY(a,"impression")&&a.mf(b?"fullscreen":"end_fullscreen")}; pQa=function(a){qY(a,"impression")&&a.mf("clickthrough")}; qQa=function(a){a.mf("active_view_measurable")}; rQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.mf("active_view_fully_viewable_audible_half_duration")}; sQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.mf("active_view_viewable")}; tQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.mf("audio_audible")}; uQa=function(a){qY(a,"impression")&&!qY(a,"seek")&&a.mf("audio_measurable")}; vQa=function(a,b,c,d,e,f,k,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.j=e;this.Ga=f;this.K=k;this.B=l;this.J=m;this.Ka=n;this.Sa=p;this.C=q;this.TA=!0;this.Bc=this.u=null}; wQa=function(a,b,c){var d;a.Sa.get().Rh("ads_qua","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=kw(a.C.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; xQa=function(a,b){var c;a.Sa.get().Rh("ads_imp","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=kw(a.C.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; tZ=function(a){return{enterMs:X(a.Ea,"metadata_type_layout_enter_ms"),exitMs:X(a.Ea,"metadata_type_layout_exit_ms")}}; uZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w){nZ.call(this,a,b,c,d,e,k,l,m,n,q);this.X=f;this.J=p;this.C=t;this.Ka=w;this.Bc=this.u=null}; yQa=function(a,b){var c;a.Sa.get().Rh("ads_imp","acpn."+(null==(c=kw(a.B.get(),2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; zQa=function(a,b,c){var d;a.Sa.get().Rh("ads_qua","cpn."+X(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=kw(a.B.get(),2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; vZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t,w,x,y,z,E,I){this.Fe=a;this.ra=b;this.j=c;this.B=d;this.Ga=e;this.Sa=f;this.K=k;this.D=l;this.u=m;this.C=n;this.Wd=p;this.Z=q;this.ud=t;this.Pc=w;this.N=x;this.X=y;this.ma=z;this.Ka=E;this.J=I}; wZ=function(a){g.G.call(this);this.j=a;this.Lb=new Map}; xZ=function(a,b){for(var c=[],d=g.r(a.Lb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&VV(a.j(),c)}; yZ=function(a,b){g.G.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.Bf(this,function(){b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().kq)?void 0:d.slotId)||null}; AQa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; zZ=function(a){this.I=a}; BQa=function(a,b,c,d,e){FE.call(this,"image-companion",a,b,c,d,e)}; AZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Fe=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");HV(this.Fe(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)}; CQa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)}); return{Vd:a,Ue:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; DQa=function(a,b,c,d,e){FE.call(this,"shopping-companion",a,b,c,d,e)}; BZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Fe=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");HV(this.Fe(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)}; EQa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)}); return{Vd:a,Ue:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; FQa=function(a,b,c,d,e){FE.call(this,"ads-engagement-panel",a,b,c,d,e)}; CZ=function(a,b,c,d,e,f,k,l){sY.call(this,a,b,c,d);this.Sa=e;this.Fe=f;this.J=l;this.Ni=!0;this.B=null;this.C=X(c.Ea,"metadata_type_linked_player_bytes_layout_id");HV(this.Fe(),this);a=X(c.Ea,"metadata_type_ad_placement_config");this.D=new lY(c.qc,this.Sa,a,c.layoutId)}; GQa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];mY().forEach(function(b){a.push(b)}); return{Vd:a,Ue:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; HQa=function(a,b,c,d,e){this.j=a;this.Sa=b;this.Fe=c;this.u=d;this.B=e}; DZ=function(a,b,c){FE.call(this,"player-underlay",a,{},b,c);this.j=c}; EZ=function(a,b,c,d){sY.call(this,a,b,c,d)}; IQa=function(a){this.j=a}; JQa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.Sa=e;a=X(c.Ea,"metadata_type_ad_placement_config");this.j=new lY(c.qc,this.Sa,a,c.layoutId)}; KQa=function(a,b){this.Ga=a;this.Sa=b}; FZ=function(a,b,c,d,e){sY.call(this,c,a,b,d);this.Sa=e;a=X(b.Ea,"metadata_type_ad_placement_config");this.B=new lY(b.qc,e,a,b.layoutId)}; GZ=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; IZ=function(a,b,c){c=void 0===c?HZ:c;c.widtha.width*a.height*.2)return{GC:3,Qy:501,errorMessage:"ad("+GZ(c)+") to container("+GZ(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{GC:3,Qy:501,errorMessage:"ad("+GZ(c)+") covers container("+GZ(a)+") center."}}; LQa=function(a,b){var c=X(a.Ea,"metadata_type_ad_placement_config");return new lY(a.qc,b,c,a.layoutId)}; JZ=function(a){return X(a.Ea,"metadata_type_invideo_overlay_ad_renderer")}; KZ=function(a,b,c,d){FE.call(this,"invideo-overlay",a,b,c,d);this.j=d}; LZ=function(a,b,c,d,e,f,k,l,m,n,p,q){sY.call(this,f,a,b,e);this.Sa=c;this.B=k;this.Ga=l;this.K=m;this.Ka=n;this.D=p;this.C=q;this.N=LQa(b,c)}; MQa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];mY().forEach(function(b){a.push(b)}); return{Vd:a,Ue:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; MZ=function(a,b,c,d,e,f,k,l,m,n,p,q,t){sY.call(this,f,a,b,e);this.Sa=c;this.B=k;this.K=l;this.Ga=m;this.N=n;this.Ka=p;this.D=q;this.C=t;this.X=LQa(b,c)}; NQa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(mY()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Vd:a,Ue:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; NZ=function(a){this.Ga=a;this.j=!1}; OZ=function(a,b,c,d,e,f,k){sY.call(this,c,a,b,d);this.B=e;this.Ga=f;this.Ka=k}; OQa=function(a,b,c,d,e,f,k,l,m,n){this.j=a;this.Ga=b;this.Sa=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.Ka=m;this.u=n}; PZ=function(a){g.G.call(this);this.B=a;this.Ni=!0;this.Lb=new Map;this.j=new Map;this.u=new Map}; PQa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c}; QQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new pw}); g.H(this,this.K);this.ra=Y(function(){return new MW(f.K)}); g.H(this,this.ra);this.D=Y(function(){return new JW}); g.H(this,this.D);this.X=Y(function(){return new FW(a)}); g.H(this,this.X);this.Z=Y(function(){return new YW(f.K)}); g.H(this,this.Z);this.Gb=Y(function(){return new bX}); g.H(this,this.Gb);this.Ub=Y(function(){return new GE(b.V())}); g.H(this,this.Ub);this.ma=Y(function(){return new hZ(b)}); g.H(this,this.ma);this.Da=Y(function(){return new iW(e)}); g.H(this,this.Da);this.ud=Y(function(){return new fH(b)}); g.H(this,this.ud);this.Ia=Y(function(){return new dX(b)}); g.H(this,this.Ia);this.Wd=Y(function(){return new kZ(b)}); g.H(this,this.Wd);this.Pc=Y(function(){return new eX(b)}); g.H(this,this.Pc);this.Ka=Y(function(){return new fX(b)}); g.H(this,this.Ka);this.Kb=Y(function(){return new gZ(d)}); g.H(this,this.Kb);this.J=Y(function(){return new wV(f.Ka)}); g.H(this,this.J);this.Va=Y(function(){return new CW(f.Z,f.ra,f.Ka,f.J,"SLOT_TYPE_ABOVE_FEED",f.ib)}); g.H(this,this.Va);this.Cc=Y(function(){return new lZ(b)}); g.H(this,this.Cc);this.qb=Y(function(){return new mZ}); g.H(this,this.qb);this.ob=Y(function(){return new xX}); g.H(this,this.ob);this.j=Y(function(){return new sX(b,f.Gb,f.Ka)}); g.H(this,this.j);this.Xb=new aX(this.Ka,this.J,this.j);g.H(this,this.Xb);this.Ha=Y(function(){return new jZ(b,f.j,f.Ka,f.Sa)}); g.H(this,this.Ha);this.Pa=Y(function(){return new zZ(b)}); g.H(this,this.Pa);this.Ga=Y(function(){return new tX(b,f.j)}); g.H(this,this.Ga);this.xe=Y(function(){return new yX}); this.va=Y(function(){return new iX(f.Ga,b)}); g.H(this,this.va);this.Sa=Y(function(){return new nX(b,f.D,f.va,f.j)}); g.H(this,this.Sa);this.Zc=new SY(TY,QZ,function(l,m,n,p){return NW(f.ra.get(),l,m,n,p)},this.X,this.Z,this.ra,this.J,this.Ka,this.j); g.H(this,this.Zc);this.Ac=new ow(this.X,this.Va,c,this.Ka,a,this.j,this.Ga);g.H(this,this.Ac);var k=new cX(b,this.Ac,this.Ga,this.j,this.Ha);this.Xa=Y(function(){return k}); this.Yo=k;this.ib=new RY(this.X,this.Z,this.Xa,this.Ha,this.Ga,this.Ka,this.Sa,this.Pa);g.H(this,this.ib);this.Cb=new IW(this.X,this.Z,this.Ia,this.Xa);g.H(this,this.Cb);this.Dc=new iw(this.X,this.Z,this.Va,this.j,this.Cb,c);g.H(this,this.Dc);this.Sb=Y(function(){return new hY(f.Kb,f.ra,f.J,f.Pa)}); g.H(this,this.Sb);this.B=Y(function(){return new iY}); g.H(this,this.B);this.xa=new YY(a,this.ma);g.H(this,this.xa);this.u=new ZY(a);g.H(this,this.u);this.Wa=new wZ(a);g.H(this,this.Wa);this.gb=new $Y(a,this.Xa);g.H(this,this.gb);this.Ra=new aZ(a,this.Ia,this.Ga,this.j);g.H(this,this.Ra);this.ub=new yZ(a,this.j);g.H(this,this.ub);this.N=new cZ(a);g.H(this,this.N);this.Oc=new dZ(a);g.H(this,this.Oc);this.Fb=new PZ(a);g.H(this,this.Fb);this.C=Y(function(){return new UY}); g.H(this,this.C);this.kd=Y(function(){return new VY(f.Ga)}); g.H(this,this.kd);this.Bd=Y(function(){return new HQa(f.ma,f.Sa,a,f.D,f.va)}); g.H(this,this.Bd);this.Qb=Y(function(){return new kY(f.Dc)}); g.H(this,this.Qb);this.Wb=Y(function(){return new rY(f.Sa,f.N)}); g.H(this,this.Wb);this.Uc=Y(function(){return new vZ(a,f.N,f.j,f.Pa,f.Ga,f.Sa,f.Gb,f.Ha,f.va,f.xe,f.Wd,f.Ia,f.ud,f.Pc,f.Ub,f.Da,f.Cc,f.Ka,f.D)}); g.H(this,this.Uc);this.Od=Y(function(){return new KQa(f.Ga,f.Sa)}); g.H(this,this.Od);this.kc=Y(function(){return new OQa(f.ma,f.Ga,f.Sa,f.D,f.va,f.Wa,f.Fb,f.Da,f.Ka,c)}); g.H(this,this.kc);this.Pd=Y(function(){return new IQa(f.ma)}); g.H(this,this.Pd);this.Td=new eZ(a,this.ob,this.K);g.H(this,this.Td);this.le=new fZ(a,this.qb,this.J,this.j,this.K,this.Ka);g.H(this,this.le);this.je={Xq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.ib],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cb]]),xm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Sb],["SLOT_TYPE_ABOVE_FEED",this.B],["SLOT_TYPE_FORECASTING",this.B],["SLOT_TYPE_IN_PLAYER",this.B],["SLOT_TYPE_PLAYER_BYTES",this.B],["SLOT_TYPE_PLAYER_UNDERLAY",this.B],["SLOT_TYPE_PLAYBACK_TRACKING",this.B]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.xa],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.xa],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.gb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED", this.ub],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ub],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.gb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Oc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Fb]]),hn:new Map([["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES", this.kd],["SLOT_TYPE_PLAYER_UNDERLAY",this.C],["SLOT_TYPE_PLAYBACK_TRACKING",this.C]]),Mm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Bd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Qb],["SLOT_TYPE_FORECASTING",this.Wb],["SLOT_TYPE_PLAYER_BYTES",this.Uc],["SLOT_TYPE_PLAYBACK_TRACKING",this.Od],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_UNDERLAY",this.Pd]])};this.listeners=[this.D.get()];this.Mq={Dc:this.Dc,Sk:this.N,Om:this.qb.get(),Rf:this.Ka.get(),jb:this.Da.get(),hp:this.Ga.get(),Ac:this.Ac,Oj:this.K.get(), Nm:this.ob.get(),Ri:this.xa,nh:this.D.get(),fk:this.j.get()}}; RQa=function(a,b,c,d,e,f,k,l,m,n){this.u=a;this.Ga=b;this.Sa=c;this.K=d;this.D=e;this.B=f;this.J=k;this.C=l;this.Ka=m;this.j=n}; SQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new pw}); g.H(this,this.C);this.K=Y(function(){return new MW(f.C)}); g.H(this,this.K);this.N=Y(function(){return new JW}); g.H(this,this.N);this.D=Y(function(){return new FW(a)}); g.H(this,this.D);this.J=Y(function(){return new YW(f.C)}); g.H(this,this.J);this.Zc=Y(function(){return new bX}); g.H(this,this.Zc);this.Gb=Y(function(){return new GE(b.V())}); g.H(this,this.Gb);this.Ia=Y(function(){return new hZ(b)}); g.H(this,this.Ia);this.Z=Y(function(){return new iW(e)}); g.H(this,this.Z);this.ud=Y(function(){return new fH(b)}); g.H(this,this.ud);this.ma=Y(function(){return new dX(b)}); g.H(this,this.ma);this.Wd=Y(function(){return new kZ(b)}); g.H(this,this.Wd);this.Pc=Y(function(){return new eX(b)}); g.H(this,this.Pc);this.Ka=Y(function(){return new fX(b)}); g.H(this,this.Ka);this.ub=Y(function(){return new gZ(d)}); g.H(this,this.ub);this.B=Y(function(){return new wV(f.Ka)}); g.H(this,this.B);this.Ha=Y(function(){return new CW(f.J,f.K,f.Ka,f.B,null,f.Xa)}); g.H(this,this.Ha);this.Ub=Y(function(){return new lZ(b)}); g.H(this,this.Ub);this.ib=Y(function(){return new mZ}); g.H(this,this.ib);this.gb=Y(function(){return new xX}); g.H(this,this.gb);this.j=Y(function(){return new sX(b,f.Zc,f.Ka)}); g.H(this,this.j);this.Xb=new aX(this.Ka,this.B,this.j);g.H(this,this.Xb);this.Kb=Y(function(){return new jZ(b,f.j,f.Ka,f.Sa)}); this.Ga=Y(function(){return new tX(b,f.j)}); g.H(this,this.Ga);this.Da=Y(function(){return new iX(f.Ga,b)}); g.H(this,this.Da);this.Sa=Y(function(){return new nX(b,f.N,f.Da,f.j)}); g.H(this,this.Sa);this.Uc=Y(function(){return new yX}); g.H(this,this.Uc);this.Cc=new SY(TY,QZ,function(l,m,n,p){return NW(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.Ka,this.j); g.H(this,this.Cc);this.Ac=new ow(this.D,this.Ha,c,this.Ka,a,this.j,this.Ga);g.H(this,this.Ac);var k=new cX(b,this.Ac,this.Ga,this.j,this.Kb);this.Va=Y(function(){return k}); this.Yo=k;this.Xa=new RY(this.D,this.J,this.Va,this.Kb,this.Ga,this.Ka,this.Sa);g.H(this,this.Xa);this.ob=new IW(this.D,this.J,this.ma,this.Va);g.H(this,this.ob);this.Dc=new iw(this.D,this.J,this.Ha,this.j,this.ob,c);g.H(this,this.Dc);this.Fb=Y(function(){return new hY(f.ub,f.K,f.B)}); g.H(this,this.Fb);this.va=Y(function(){return new iY}); g.H(this,this.va);this.Ra=new YY(a,this.Ia);g.H(this,this.Ra);this.u=new ZY(a);g.H(this,this.u);this.Pa=new wZ(a);g.H(this,this.Pa);this.Wa=new $Y(a,this.Va);g.H(this,this.Wa);this.ra=new aZ(a,this.ma,this.Ga,this.j);g.H(this,this.ra);this.X=new cZ(a);g.H(this,this.X);this.Wb=new dZ(a);g.H(this,this.Wb);this.qb=new PZ(a);g.H(this,this.qb);this.xa=Y(function(){return new UY}); g.H(this,this.xa);this.Oc=Y(function(){return new VY(f.Ga)}); g.H(this,this.Oc);this.Cb=Y(function(){return new kY(f.Dc)}); g.H(this,this.Cb);this.Qb=Y(function(){return new rY(f.Sa,f.X)}); g.H(this,this.Qb);this.Sb=Y(function(){return new RQa(f.Ia,f.Ga,f.Sa,f.N,f.Da,f.Pa,f.qb,f.Z,f.Ka,c)}); g.H(this,this.Sb);this.kc=Y(function(){return new QY(a,f.X,f.Sa,f.Da,f.Uc,f.Wd,f.j,f.Ga,f.ma,f.ud,f.Pc,f.Gb,f.Z,f.Ub,f.Ka)}); g.H(this,this.kc);this.kd=new eZ(a,this.gb,this.C);g.H(this,this.kd);this.Bd=new fZ(a,this.ib,this.B,this.j,this.C,this.Ka);g.H(this,this.Bd);this.je={Xq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Cc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ob]]),xm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Fb],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.va]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ra],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Pa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Wa],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ra],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ra],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Wa],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Wb],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.qb]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xa],["SLOT_TYPE_FORECASTING",this.xa],["SLOT_TYPE_IN_PLAYER",this.xa],["SLOT_TYPE_PLAYER_BYTES",this.Oc]]),Mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cb],["SLOT_TYPE_FORECASTING",this.Qb],["SLOT_TYPE_IN_PLAYER",this.Sb],["SLOT_TYPE_PLAYER_BYTES",this.kc]])};this.listeners=[this.N.get()];this.Mq={Dc:this.Dc,Sk:null,Om:this.ib.get(), Rf:this.Ka.get(),jb:this.Z.get(),hp:this.Ga.get(),Ac:this.Ac,Oj:this.C.get(),Nm:this.gb.get(),Ri:this.Ra,nh:this.N.get(),fk:this.j.get()}}; TQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.D=Y(function(){return new pw}); g.H(this,this.D);this.J=Y(function(){return new MW(f.D)}); g.H(this,this.J);this.K=Y(function(){return new JW}); g.H(this,this.K);this.X=Y(function(){return new FW(a)}); g.H(this,this.X);this.Z=Y(function(){return new YW(f.D)}); g.H(this,this.Z);this.Ub=Y(function(){return new bX}); g.H(this,this.Ub);this.ob=Y(function(){return new GE(b.V())}); g.H(this,this.ob);this.xa=Y(function(){return new hZ(b)}); g.H(this,this.xa);this.Ha=Y(function(){return new iW(e)}); g.H(this,this.Ha);this.ud=Y(function(){return new fH(b)}); g.H(this,this.ud);this.ma=Y(function(){return new dX(b)}); g.H(this,this.ma);this.Wd=Y(function(){return new kZ(b)}); g.H(this,this.Wd);this.Pc=Y(function(){return new eX(b)}); g.H(this,this.Pc);this.Ka=Y(function(){return new fX(b)}); g.H(this,this.Ka);this.Xa=Y(function(){return new gZ(d)}); g.H(this,this.Xa);this.B=Y(function(){return new wV(f.Ka)}); g.H(this,this.B);this.va=Y(function(){return new CW(f.Z,f.J,f.Ka,f.B,null,null)}); g.H(this,this.va);this.Cb=Y(function(){return new lZ(b)}); g.H(this,this.Cb);this.Pa=Y(function(){return new mZ}); g.H(this,this.Pa);this.j=Y(function(){return new sX(b,f.Ub,f.Ka)}); g.H(this,this.j);this.Xb=new aX(this.Ka,this.B,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)}); g.H(this,this.Ga);this.Va=Y(function(){return new iX(f.Ga,b)}); g.H(this,this.Va);this.Sa=Y(function(){return new nX(b,f.K,f.Va,f.j)}); g.H(this,this.Sa);this.Sb=Y(function(){return new yX}); g.H(this,this.Sb);this.Kb=new SY(TY,QZ,function(l,m,n,p){return NW(f.J.get(),l,m,n,p)},this.X,this.Z,this.J,this.B,this.Ka,this.j); g.H(this,this.Kb);this.Ac=new ow(this.X,this.va,c,this.Ka,a,this.j,this.Ga);g.H(this,this.Ac);var k=new cX(b,this.Ac,this.Ga,this.j);this.qb=Y(function(){return k}); this.Yo=k;this.Wa=new IW(this.X,this.Z,this.ma,this.qb);g.H(this,this.Wa);this.Dc=new iw(this.X,this.Z,this.va,this.j,this.Wa,c);g.H(this,this.Dc);this.ib=Y(function(){return new hY(f.Xa,f.J,f.B)}); g.H(this,this.ib);this.ra=Y(function(){return new iY}); g.H(this,this.ra);this.Da=new YY(a,this.xa);g.H(this,this.Da);this.u=new ZY(a);g.H(this,this.u);this.Ia=new $Y(a,this.qb);g.H(this,this.Ia);this.Ra=new aZ(a,this.ma,this.Ga,this.j);g.H(this,this.Ra);this.N=new cZ(a);g.H(this,this.N);this.Fb=new dZ(a);g.H(this,this.Fb);this.C=Y(function(){return new UY}); g.H(this,this.C);this.Qb=Y(function(){return new VY(f.Ga)}); g.H(this,this.Qb);this.gb=Y(function(){return new kY(f.Dc)}); g.H(this,this.gb);this.ub=Y(function(){return new rY(f.Sa,f.N)}); g.H(this,this.ub);this.Wb=Y(function(){return new zY(f.xa,f.Ga,f.Sa,f.K,c)}); g.H(this,this.Wb);this.Gb=Y(function(){return new QY(a,f.N,f.Sa,f.Va,f.Sb,f.Wd,f.j,f.Ga,f.ma,f.ud,f.Pc,f.ob,f.Ha,f.Cb,f.Ka)}); g.H(this,this.Gb);this.kc=new fZ(a,this.Pa,this.B,this.j,this.D,this.Ka);g.H(this,this.kc);this.je={Xq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),xm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.ra],["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES", this.ra]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ia],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.N],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.N],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fb]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.Qb]]), Mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gb],["SLOT_TYPE_FORECASTING",this.ub],["SLOT_TYPE_IN_PLAYER",this.Wb],["SLOT_TYPE_PLAYER_BYTES",this.Gb]])};this.listeners=[this.K.get()];this.Mq={Dc:this.Dc,Sk:null,Om:this.Pa.get(),Rf:this.Ka.get(),jb:this.Ha.get(),hp:this.Ga.get(),Ac:this.Ac,Oj:this.D.get(),Nm:null,Ri:this.Da,nh:this.K.get(),fk:this.j.get()}}; UQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new pw}); g.H(this,this.C);this.D=Y(function(){return new MW(f.C)}); g.H(this,this.D);this.J=Y(function(){return new JW}); g.H(this,this.J);this.N=Y(function(){return new FW(a)}); g.H(this,this.N);this.X=Y(function(){return new YW(f.C)}); g.H(this,this.X);this.Wb=Y(function(){return new bX}); g.H(this,this.Wb);this.ib=Y(function(){return new GE(b.V())}); g.H(this,this.ib);this.xa=Y(function(){return new hZ(b)}); g.H(this,this.xa);this.Ha=Y(function(){return new iW(e)}); g.H(this,this.Ha);this.ud=Y(function(){return new fH(b)}); g.H(this,this.ud);this.Z=Y(function(){return new dX(b)}); g.H(this,this.Z);this.Wd=Y(function(){return new kZ(b)}); g.H(this,this.Wd);this.Pc=Y(function(){return new eX(b)}); g.H(this,this.Pc);this.Ka=Y(function(){return new fX(b)}); g.H(this,this.Ka);this.Wa=Y(function(){return new gZ(d)}); g.H(this,this.Wa);this.B=Y(function(){return new wV(f.Ka)}); g.H(this,this.B);this.va=Y(function(){return new CW(f.X,f.D,f.Ka,f.B,null,null)}); g.H(this,this.va);this.Fb=Y(function(){return new lZ(b)}); g.H(this,this.Fb);this.Ra=Y(function(){return new mZ}); g.H(this,this.Ra);this.j=Y(function(){return new sX(b,f.Wb,f.Ka)}); g.H(this,this.j);this.Xb=new aX(this.Ka,this.B,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)}); g.H(this,this.Ga);this.Pa=Y(function(){return new iX(f.Ga,b)}); g.H(this,this.Pa);this.Sa=Y(function(){return new nX(b,f.J,f.Pa,f.j)}); g.H(this,this.Sa);this.Ub=Y(function(){return new yX}); g.H(this,this.Ub);this.Qb=new SY(TY,QZ,function(l,m,n,p){return NW(f.D.get(),l,m,n,p)},this.N,this.X,this.D,this.B,this.Ka,this.j); g.H(this,this.Qb);this.Ac=new ow(this.N,this.va,c,this.Ka,a,this.j,this.Ga);g.H(this,this.Ac);var k=new cX(b,this.Ac,this.Ga,this.j);this.ob=Y(function(){return k}); this.Yo=k;this.Va=new IW(this.N,this.X,this.Z,this.ob);g.H(this,this.Va);this.Dc=new iw(this.N,this.X,this.va,this.j,this.Va,c);g.H(this,this.Dc);this.gb=Y(function(){return new hY(f.Wa,f.D,f.B)}); g.H(this,this.gb);this.ma=Y(function(){return new iY}); g.H(this,this.ma);this.Da=new YY(a,this.xa);g.H(this,this.Da);this.u=new ZY(a);g.H(this,this.u);this.Ia=new $Y(a,this.ob);g.H(this,this.Ia);this.qb=new aZ(a,this.Z,this.Ga,this.j);g.H(this,this.qb);this.K=new cZ(a);g.H(this,this.K);this.Gb=new dZ(a);g.H(this,this.Gb);this.ra=Y(function(){return new UY}); g.H(this,this.ra);this.Sb=Y(function(){return new VY(f.Ga)}); g.H(this,this.Sb);this.Xa=Y(function(){return new kY(f.Dc)}); g.H(this,this.Xa);this.ub=Y(function(){return new rY(f.Sa,f.K)}); g.H(this,this.ub);this.Cb=Y(function(){return new zY(f.xa,f.Ga,f.Sa,f.J,c)}); g.H(this,this.Cb);this.Kb=Y(function(){return new QY(a,f.K,f.Sa,f.Pa,f.Ub,f.Wd,f.j,f.Ga,f.Z,f.ud,f.Pc,f.ib,f.Ha,f.Fb,f.Ka)}); g.H(this,this.Kb);this.kc=new fZ(a,this.Ra,this.B,this.j,this.C,this.Ka);g.H(this,this.kc);this.je={Xq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Va]]),xm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES", this.ma]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ia],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.qb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ra],["SLOT_TYPE_FORECASTING",this.ra],["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",this.Sb]]),Mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xa],["SLOT_TYPE_FORECASTING", this.ub],["SLOT_TYPE_IN_PLAYER",this.Cb],["SLOT_TYPE_PLAYER_BYTES",this.Kb]])};this.listeners=[this.J.get()];this.Mq={Dc:this.Dc,Sk:null,Om:this.Ra.get(),Rf:this.Ka.get(),jb:this.Ha.get(),hp:this.Ga.get(),Ac:this.Ac,Oj:this.C.get(),Nm:null,Ri:this.Da,nh:this.J.get(),fk:this.j.get()}}; RZ=function(a,b,c,d,e,f,k,l,m){xY.call(this,a,b,c,d,e,f,k,m);this.K=l}; VQa=function(){var a=JPa();a.Vd.push("metadata_type_ad_info_ad_metadata");return a}; WQa=function(a,b,c,d,e,f){this.B=a;this.Ga=b;this.Sa=c;this.C=d;this.u=e;this.j=f}; XQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.C=Y(function(){return new pw}); g.H(this,this.C);this.D=Y(function(){return new MW(f.C)}); g.H(this,this.D);this.J=Y(function(){return new JW}); g.H(this,this.J);this.N=Y(function(){return new FW(a)}); g.H(this,this.N);this.X=Y(function(){return new YW(f.C)}); g.H(this,this.X);this.Wb=Y(function(){return new bX}); g.H(this,this.Wb);this.ob=Y(function(){return new hQa(b)}); g.H(this,this.ob);this.qb=Y(function(){return new GE(b.V())}); g.H(this,this.qb);this.xa=Y(function(){return new hZ(b)}); g.H(this,this.xa);this.Ha=Y(function(){return new iW(e)}); g.H(this,this.Ha);this.ud=Y(function(){return new fH(b)}); g.H(this,this.ud);this.Z=Y(function(){return new dX(b)}); g.H(this,this.Z);this.Wd=Y(function(){return new kZ(b)}); g.H(this,this.Wd);this.Pc=Y(function(){return new eX(b)}); g.H(this,this.Pc);this.Ka=Y(function(){return new fX(b)}); g.H(this,this.Ka);this.Xa=Y(function(){return new gZ(d)}); g.H(this,this.Xa);this.B=Y(function(){return new wV(f.Ka)}); g.H(this,this.B);this.va=Y(function(){return new CW(f.X,f.D,f.Ka,f.B,null,null)}); g.H(this,this.va);this.Fb=Y(function(){return new lZ(b)}); g.H(this,this.Fb);this.Pa=Y(function(){return new mZ}); g.H(this,this.Pa);this.j=Y(function(){return new sX(b,f.Wb,f.Ka)}); g.H(this,this.j);this.Xb=new aX(this.Ka,this.B,this.j);g.H(this,this.Xb);this.Ga=Y(function(){return new tX(b,f.j)}); g.H(this,this.Ga);this.Va=Y(function(){return new iX(f.Ga,b)}); g.H(this,this.Va);this.Sa=Y(function(){return new nX(b,f.J,f.Va,f.j)}); g.H(this,this.Sa);this.Ub=Y(function(){return new yX}); g.H(this,this.Ub);this.Qb=new SY(WPa,QZ,function(l,m,n,p){return VOa(f.D.get(),l,m,n,p)},this.N,this.X,this.D,this.B,this.Ka,this.j); g.H(this,this.Qb);this.Ac=new ow(this.N,this.va,c,this.Ka,a,this.j,this.Ga);g.H(this,this.Ac);var k=new cX(b,this.Ac,this.Ga,this.j);this.ub=Y(function(){return k}); this.Yo=k;this.Wa=new IW(this.N,this.X,this.Z,this.ub);g.H(this,this.Wa);this.Dc=new iw(this.N,this.X,this.va,this.j,this.Wa,c);g.H(this,this.Dc);this.ib=Y(function(){return new hY(f.Xa,f.D,f.B)}); g.H(this,this.ib);this.ma=Y(function(){return new iY}); g.H(this,this.ma);this.Da=new YY(a,this.xa);g.H(this,this.Da);this.u=new ZY(a);g.H(this,this.u);this.Ia=new $Y(a,this.ub);g.H(this,this.Ia);this.Ra=new aZ(a,this.Z,this.Ga,this.j);g.H(this,this.Ra);this.K=new cZ(a);g.H(this,this.K);this.Gb=new dZ(a);g.H(this,this.Gb);this.ra=Y(function(){return new UY}); g.H(this,this.ra);this.Sb=Y(function(){return new VY(f.Ga)}); g.H(this,this.Sb);this.gb=Y(function(){return new kY(f.Dc)}); g.H(this,this.gb);this.Cb=Y(function(){return new rY(f.Sa,f.K)}); g.H(this,this.Cb);this.Kb=Y(function(){return new QY(a,f.K,f.Sa,f.Va,f.Ub,f.Wd,f.j,f.Ga,f.Z,f.ud,f.Pc,f.qb,f.Ha,f.Fb,f.Ka)}); g.H(this,this.Kb);this.kc=Y(function(){return new WQa(f.xa,f.Ga,f.Sa,f.J,f.ob,c)}); g.H(this,this.kc);this.Cc=new fZ(a,this.Pa,this.B,this.j,this.C,this.Ka);g.H(this,this.Cc);this.je={Xq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Wa]]),xm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ib],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES", this.ma]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.Ia],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ra],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ra],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ia],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gb]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ra],["SLOT_TYPE_FORECASTING",this.ra],["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",this.Sb]]),Mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.gb],["SLOT_TYPE_FORECASTING",this.Cb],["SLOT_TYPE_IN_PLAYER",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.Kb]])};this.listeners=[this.J.get()];this.Mq={Dc:this.Dc,Sk:null,Om:this.Pa.get(),Rf:this.Ka.get(),jb:this.Ha.get(),hp:this.Ga.get(),Ac:this.Ac,Oj:this.C.get(),Nm:null,Ri:this.Da,nh:this.J.get(),fk:this.j.get()}}; YQa=function(a,b,c,d,e,f){this.u=a;this.Ga=b;this.Sa=c;this.B=d;this.C=e;this.j=f}; ZQa=function(a,b,c,d,e){g.G.call(this);var f=this;this.K=Y(function(){return new pw}); g.H(this,this.K);this.N=Y(function(){return new MW(f.K)}); g.H(this,this.N);this.C=Y(function(){return new JW}); g.H(this,this.C);this.D=Y(function(){return new FW(a)}); g.H(this,this.D);this.J=Y(function(){return new YW(f.K)}); g.H(this,this.J);this.ub=Y(function(){return new bX}); g.H(this,this.ub);this.Kb=Y(function(){return new hQa(b)}); g.H(this,this.Kb);this.Qb=Y(function(){return new GE(b.V())}); g.H(this,this.Qb);this.Ha=Y(function(){return new hZ(b)}); g.H(this,this.Ha);this.Ra=Y(function(){return new iW(e)}); g.H(this,this.Ra);this.ud=Y(function(){return new fH(b)}); g.H(this,this.ud);this.ma=Y(function(){return new dX(b)}); g.H(this,this.ma);this.Wd=Y(function(){return new kZ(b)}); g.H(this,this.Wd);this.Pc=Y(function(){return new eX(b)}); g.H(this,this.Pc);this.Ka=Y(function(){return new fX(b)}); g.H(this,this.Ka);this.Cb=Y(function(){return new gZ(d)}); g.H(this,this.Cb);this.B=Y(function(){return new wV(f.Ka)}); g.H(this,this.B);this.Da=Y(function(){return new CW(f.J,f.N,f.Ka,f.B,null,f.Wa,3)}); g.H(this,this.Da);this.Wb=Y(function(){return new lZ(b)}); g.H(this,this.Wb);this.gb=Y(function(){return new mZ}); g.H(this,this.gb);this.j=Y(function(){return new sX(b,f.ub,f.Ka)}); g.H(this,this.j);this.Xb=new aX(this.Ka,this.B,this.j);g.H(this,this.Xb);this.Z=Y(function(){return new jZ(b,f.j,f.Ka,f.Sa)}); g.H(this,this.Z);this.xa=Y(function(){return new zZ(b)}); g.H(this,this.xa);this.Ga=Y(function(){return new tX(b,f.j)}); g.H(this,this.Ga);this.kd=Y(function(){return new yX}); this.ib=Y(function(){return new iX(f.Ga,b)}); g.H(this,this.ib);this.Sa=Y(function(){return new nX(b,f.C,f.ib,f.j)}); g.H(this,this.Sa);this.Ac=new ow(this.D,this.Da,c,this.Ka,a,this.j,this.Ga);g.H(this,this.Ac);var k=new cX(b,this.Ac,this.Ga,this.j,this.Z);this.Pa=Y(function(){return k}); this.Yo=k;this.Oc=new SY(XPa,QZ,function(l,m,n,p){return VOa(f.N.get(),l,m,n,p)},this.D,this.J,this.N,this.B,this.Ka,this.j); g.H(this,this.Oc);this.Wa=new RY(this.D,this.J,this.Pa,this.Z,this.Ga,this.Ka,this.Sa,this.xa);g.H(this,this.Wa);this.qb=new IW(this.D,this.J,this.ma,this.Pa);g.H(this,this.qb);this.Dc=new iw(this.D,this.J,this.Da,this.j,this.qb,c);g.H(this,this.Dc);this.Gb=Y(function(){return new hY(f.Cb,f.N,f.B,f.xa)}); g.H(this,this.Gb);this.ra=Y(function(){return new iY}); g.H(this,this.ra);this.Ia=new YY(a,this.Ha);g.H(this,this.Ia);this.u=new ZY(a);g.H(this,this.u);this.Va=new $Y(a,this.Pa);g.H(this,this.Va);this.Xa=new aZ(a,this.ma,this.Ga,this.j);g.H(this,this.Xa);this.ob=new yZ(a,this.j);g.H(this,this.ob);this.X=new cZ(a);g.H(this,this.X);this.kc=new dZ(a);g.H(this,this.kc);this.va=Y(function(){return new UY}); g.H(this,this.va);this.Uc=Y(function(){return new VY(f.Ga)}); g.H(this,this.Uc);this.Fb=Y(function(){return new kY(f.Dc)}); g.H(this,this.Fb);this.Sb=Y(function(){return new rY(f.Sa,f.X)}); g.H(this,this.Sb);this.Cc=Y(function(){return new vZ(a,f.X,f.j,f.xa,f.Ga,f.Sa,f.ub,f.Z,f.ib,f.kd,f.Wd,f.ma,f.ud,f.Pc,f.Qb,f.Ra,f.Wb,f.Ka,f.C)}); g.H(this,this.Cc);this.Ub=Y(function(){return new YQa(f.Ha,f.Ga,f.Sa,f.C,f.Kb,c)}); g.H(this,this.Ub);this.Zc=new fZ(a,this.gb,this.B,this.j,this.K,this.Ka);g.H(this,this.Zc);this.je={Xq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Dc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wa],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Ac],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),xm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gb],["SLOT_TYPE_FORECASTING",this.ra], ["SLOT_TYPE_IN_PLAYER",this.ra],["SLOT_TYPE_PLAYER_BYTES",this.ra]]),oi:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ia],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Va],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xa],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xa],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ob],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ob],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.X],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.X],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Va],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.kc]]),hn:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.va],["SLOT_TYPE_FORECASTING",this.va],["SLOT_TYPE_IN_PLAYER",this.va],["SLOT_TYPE_PLAYER_BYTES",this.Uc]]),Mm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Fb],["SLOT_TYPE_FORECASTING",this.Sb],["SLOT_TYPE_PLAYER_BYTES",this.Cc],["SLOT_TYPE_IN_PLAYER",this.Ub]])};this.listeners=[this.C.get()];this.Mq={Dc:this.Dc,Sk:null,Om:this.gb.get(),Rf:this.Ka.get(),jb:this.Ra.get(),hp:this.Ga.get(),Ac:this.Ac,Oj:this.K.get(),Nm:null,Ri:this.Ia,nh:this.C.get(),fk:this.j.get()}}; SZ=function(a,b,c,d){g.G.call(this);var e=this;this.j=$Qa(function(){return e.u},a,b,c,d); g.H(this,this.j);this.u=(new gW(this.j)).B();g.H(this,this.u)}; TZ=function(a){return a.j.Mq}; $Qa=function(a,b,c,d,e){try{var f=b.V();if(g.KC(f))var k=new QQa(a,b,c,d,e);else if(g.NC(f))k=new SQa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===zC(f))k=new UQa(a,b,c,d,e);else if(CC(f))k=new TQa(a,b,c,d,e);else if(g.tC(f))k=new XQa(a,b,c,d,e);else if(g.sC(f))k=new ZQa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return k}catch(l){return k=b.V(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:k.deviceParams.cplatform,interface:k.deviceParams.c, rha:k.deviceParams.cver,qha:k.deviceParams.ctheme,pha:k.deviceParams.cplayer,Hha:k.playerStyle}),new wPa(a,b,c,d,e)}}; UZ=function(a,b){this.j=a;this.Sk=b}; VZ=function(a){HI.call(this,a)}; WZ=function(a,b,c,d,e,f){PI.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e,f);this.C=this.Ca("ytp-ad-timed-pie-countdown-inner");this.B=Math.ceil(10* Math.PI);this.hide()}; XZ=function(a,b,c,d,e,f,k){iI.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",c,d,e);this.Pg=f;this.jj=k;this.navigationEndpoint=this.u=this.skipButton=this.B=this.actionButton=null;this.Ha=this.Ca("ytp-ad-action-interstitial-image-container");this.D=new DI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.Ba(this.Ha);this.Da=this.Ca("ytp-ad-action-interstitial-headline-container");this.N=new NI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-headline");g.H(this,this.N); this.N.Ba(this.Da);this.xa=this.Ca("ytp-ad-action-interstitial-description-container");this.J=new NI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-description");g.H(this,this.J);this.J.Ba(this.xa);this.Pa=this.Ca("ytp-ad-action-interstitial-background-container");this.Z=new DI(this.api,this.eb,this.layoutId,this.j,this.jb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Z);this.Z.Ba(this.Pa);this.Ia=this.Ca("ytp-ad-action-interstitial-action-button-container"); this.C=new $u;g.H(this,this.C);this.hide()}; aRa=function(a){var b=g.Sh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; YZ=function(a,b,c,d,e){iI.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d,e);this.N=[];this.Wa=this.xa=this.D=this.Pa=this.Ha=null;this.Ia=!1;this.J=null;this.Z=0;a=this.Ca("ytp-ad-overlay-container");this.Da=new YI(a,45E3,6E3,.3,.4);g.H(this,this.Da);this.C=bRa(this);g.H(this,this.C);this.C.Ba(a);this.B=cRa(this);g.H(this,this.B);this.B.Ba(a);this.u=dRa(this);g.H(this,this.u);this.u.Ba(a);this.hide()}; bRa=function(a){var b=new g.hI({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[wI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],oa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){return $Z(a,b.element, c)}); a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){return $Z(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ti);b.hide();return b}; cRa=function(a){var b=new g.hI({G:"div",Fa:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[wI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",oa:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",oa:"{{description}}"},{G:"div",Fa:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], oa:"{{displayUrl}}"}]});a.T(b.Ca("ytp-ad-overlay-title"),"click",function(c){return $Z(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-link"),"click",function(c){return $Z(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ti);a.T(b.Ca("ytp-ad-overlay-text-image"),"click",a.RY);b.hide();return b}; dRa=function(a){var b=new g.hI({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[wI(ZZ)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ca("ytp-ad-overlay-image"),"click",function(c){return $Z(a,b.element,c)}); a.T(b.Ca("ytp-ad-overlay-close-container"),"click",a.Ti);b.hide();return b}; a_=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.S(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Sh("video-ads ytp-ad-module")||null,null==b)g.S(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.xa=new g.hI({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.xa),a.xa.Ba(b),b=new MI(a.api,a.eb,a.layoutId,a.j,a.jb,a.xa.element,!1),g.H(a,b),b.init(EE("ad-info-hover-text-button"), c,a.macros),a.J){b.Ba(a.J,0);b.subscribe("f",a.qW,a);b.subscribe("e",a.XG,a);a.T(a.J,"click",a.rW);var d=g.Sh("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,k;if(null==(e=c.button)?0:null==(f=e.buttonRenderer)?0:null==(k=f.serviceEndpoint)?0:k.adInfoDialogEndpoint)a.Ia=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.Wa=b}else g.S(Error("Ad info button container within overlay ad was not present."))}else g.Mv(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; eRa=function(a,b){if(b_(a,c_)||a.api.Se())return!1;var c=jI(b.title),d=jI(b.description);if(g.kb(c)||g.kb(d))return!1;a.Yg(a.C.element,b.trackingParams||null);a.C.La("title",jI(b.title));a.C.La("description",jI(b.description));a.C.La("displayUrl",jI(b.displayUrl));b.navigationEndpoint&&g.jc(a.N,b.navigationEndpoint);a.C.show();a.Da.start();a.Za(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.Z++}); return!0}; fRa=function(a,b){if(b_(a,c_)||a.api.Se())return!1;var c=jI(b.title),d=jI(b.description);if(g.kb(c)||g.kb(d))return!1;a.Yg(a.B.element,b.trackingParams||null);a.B.La("title",jI(b.title));a.B.La("description",jI(b.description));a.B.La("displayUrl",jI(b.displayUrl));a.B.La("imageUrl",Rza(b.image));b.navigationEndpoint&&g.jc(a.N,b.navigationEndpoint);a.Pa=b.imageNavigationEndpoint||null;a.B.show();a.Da.start();a.Za(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Z++}); return!0}; gRa=function(a,b){if(a.api.Se())return!1;var c=Sza(b.image),d=c;c.widthdocument.documentMode)c=nh;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Yh("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Jia(d.style)}b=gba(c,fba({"background-image":'url("'+b+'")'}));a.style.cssText=ih(b)}}; sRa=function(a){var b=g.Sh("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; p_=function(a,b,c,d){HI.call(this,a);this.api=a;this.jb=c;this.u={};this.K=b;a=new g.W({G:"div",Fa:["video-ads","ytp-ad-module"]});g.H(this,a);hC&&g.M(a.element,"ytp-ads-tiny-mode");this.D=new bI(a.element);g.H(this,this.D);g.XK(this.api,a.element,4);iPa(d)&&(d=new g.W({G:"div",Fa:["ytp-ad-underlay"]}),g.H(this,d),this.B=new bI(d.element),g.H(this,this.B),g.XK(this.api,d.element,0));g.H(this,jAa())}; tRa=function(a,b){a=g.eg(a.u,b.id,null);null==a&&g.Mv(Error("Component not found for element id: "+b.id));return a||null}; q_=function(a){g.jL.call(this,a);var b=this;this.u=this.eb=null;this.created=!1;this.Tp=new JH(this.player);this.B=function(){function d(){return b.eb} if(null!=b.u)return b.u;var e=rza({mm:a.getVideoData(1)});e=new pNa({DT:new UZ(function(){return b.eb},TZ(b.j).Sk), Wp:e.FU(),VT:d,hW:d,Ri:TZ(b.j).Ri,Xh:e.pF(),fk:TZ(b.j).fk,I:b.player,Rf:TZ(b.j).Rf,Sa:b.j.j.Sa,nh:TZ(b.j).nh,Pc:b.j.j.Pc});b.u=e.AS;return b.u}; this.j=new SZ(this.player,this,this.Tp,this.B);g.H(this,this.j);var c=a.V();!AC(c)||g.sC(c)||CC(c)||(g.H(this,new p_(a,function(){return b.eb},TZ(this.j).jb,TZ(this.j).Rf)),g.H(this,new VZ(a)))}; uRa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")}; r_=function(a,b){b===a.Hs&&(a.Hs=void 0)}; vRa=function(a){a.eb?TZ(a.j).Ac.GF()||a.eb.GF()||TZ(a.j).hp.mq():T("AdService is null when calling maybeUnlockPrerollIfReady")}; wRa=function(a){a=g.r(TZ(a.j).nh.ai.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.fb)return!0;return!1}; s_=function(a){a=g.r(TZ(a.j).nh.ai.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; rqa=function(a,b,c){c=void 0===c?"":c;var d=TZ(a.j).Rf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.Df()||!1;d=xRa(b,d,f,e,TZ(a.j).Oj);uqa(TZ(a.j).Dc,c,d.GB,b);a.eb&&0>>0)+"_",e=0;return b}); ka("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); ka("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ga(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k=f}}); ka("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); ka("String.prototype.repeat",function(a){return a?a:function(b){var c=Ga(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ka("Set",function(a){function b(c){this.j=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a; b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); ka("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}}); ka("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l}; var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var k=0;!(f=b.next()).done;)e.push(c.call(d,f.value,k++))}else for(f=b.length,k=0;kb?-c:c}}); ka("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); ka("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);cc?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ka("Int8Array.prototype.copyWithin",Ia);ka("Uint8Array.prototype.copyWithin",Ia);ka("Uint8ClampedArray.prototype.copyWithin",Ia);ka("Int16Array.prototype.copyWithin",Ia);ka("Uint16Array.prototype.copyWithin",Ia);ka("Int32Array.prototype.copyWithin",Ia);ka("Uint32Array.prototype.copyWithin",Ia);ka("Float32Array.prototype.copyWithin",Ia);ka("Float64Array.prototype.copyWithin",Ia);ka("Number.parseInt",function(a){return a||parseInt}); vj=vj||{};g.C=this||self;Qa="closure_uid_"+(1E9*Math.random()>>>0);faa=0;g.Va(ab,Error);ab.prototype.name="CustomError";var Bba;g.Va(bb,ab);bb.prototype.name="AssertionError";var xd,xaa="undefined"!==typeof TextDecoder,eb,jaa="undefined"!==typeof TextEncoder;var xb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},lb=/&/g,nb=//g,qb=/"/g,rb=/'/g,sb=/\x00/g,kaa=/[\x00&<>"']/;var ERa=g.Ka("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Bb;if(null!=ERa&&ERa){var FRa=g.C.navigator;Bb=FRa?FRa.userAgentData||null:null}else Bb=null;var ac,Ml,Sm;ac=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0); for(var c=0;cc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; g.tc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;fparseFloat(y_)){x_=String(A_);break a}}x_=y_}var zc=x_,uaa={},B_;if(g.C.document&&g.Mc){var KRa=yc();B_=KRa?KRa:parseInt(zc,10)||void 0}else B_=void 0;var vaa=B_;var rC,xE;g.yx=Jb();rC=Rb()||Db("iPod");xE=Db("iPad");g.jC=Mb();g.gA=Kb();g.Ks=Lb()&&!Sb();var Gc={},Oc=null;var Pc="undefined"!==typeof Uint8Array,Tc,Vc={};var Zc;Yc.prototype.isEmpty=function(){return null==this.Yc};var waa;waa="function"===typeof Uint8Array.prototype.slice;g.ed=0;g.dd=0;g.h=g.gd.prototype;g.h.init=function(a,b,c,d){d=void 0===d?{}:d;this.Dz=void 0===d.Dz?!1:d.Dz;a&&(a=cd(a),this.u=a.buffer,this.D=a.Ft,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)}; g.h.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.Dz=!1}; g.h.reset=function(){this.j=this.C}; g.h.advance=function(a){this.j+=a;hd(this)}; g.h.ez=ca(0);var pd=[];rd.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1}; rd.prototype.advance=function(a){this.j.advance(a)}; var gR=[];var Bd;Dd.prototype.length=function(){return this.j.length}; Dd.prototype.end=function(){var a=this.j;this.j=[];return a};var Pd="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var Fe,ge=Object.freeze(Sd([])),hp="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;Ee.prototype.toJSON=function(){var a=this.Ae;return Fe?a:ce(a,ee)}; Ee.prototype.J=function(a){return a.B(this)}; Ee.prototype.clone=function(){var a=ce(this.Ae);De=a;a=new this.constructor(a);De=null;Ke(a,this);return a}; Ee.prototype.toString=function(){return this.Ae.toString()}; var De;g.v(Le,Ee);if(hp){var LRa={};Object.defineProperties(Le,(LRa[Symbol.hasInstance]=$d(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),LRa))};var Pe,Ve,Ze,$e,ffa,Ql,gfa,lf,eja,kq,fja;Pe=Symbol();Ve=Symbol();Ze=Symbol();$e=Symbol();ffa=g.bf(function(a,b,c){if(1!==a.u)return!1;a=g.wd(a);pe(b,c,a,0);return!0},g.cf); Ql=g.bf(function(a,b,c){if(0!==a.u)return!1;a=g.jd(a.j);pe(b,c,a,0);return!0},g.df); gfa=g.bf(function(a,b,c){if(0!==a.u)return!1;a=g.kd(a.j);pe(b,c,a,0);return!0},g.ef); g.nq=g.bf(function(a,b,c){if(2!==a.u)return!1;g.D(b,c,g.yd(a));return!0},g.ff); g.lq=g.bf(function(a,b,c,d,e){if(2!==a.u)return!1;g.vd(a,Ae(b,c,d),e);return!0},function(a,b,c,d,e){b=we(b,d,c); if(null!=b)for(d=0;d>>0;g.D(b,c,a);return!0},function(a,b,c){b=g.fe(b,c); null!=b&&null!=b&&(g.Ld(a,c,0),Fd(a.j,b))}); fja=g.bf(function(a,b,c){if(0!==a.u)return!1;a=g.kd(a.j);g.D(b,c,a);return!0},function(a,b,c){b=g.fe(b,c); null!=b&&(b=parseInt(b,10),g.Ld(a,c,0),Gd(a.j,b))});g.v(g.F,Le);if(hp){var MRa={};Object.defineProperties(g.F,(MRa[Symbol.hasInstance]=$d(Object[Symbol.hasInstance]),MRa))};g.v(kf,g.F);g.v(mf,g.F);g.v(nf,g.F);g.v(of,g.F);var qf=[1,2,3];g.h=wf.prototype;g.h.FT=function(a){var b=g.Da.apply(1,arguments),c=this.fF(b);c?c.push(new vf(a)):this.NP(a,b)}; g.h.NP=function(a){this.Ns.set(this.sM(g.Da.apply(1,arguments)),[new vf(a)])}; g.h.fF=function(){var a=this.sM(g.Da.apply(0,arguments));return this.Ns.has(a)?this.Ns.get(a):void 0}; g.h.IU=function(){var a=this.fF(g.Da.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.h.clear=function(){this.Ns.clear()}; g.h.sM=function(){var a=g.Da.apply(0,arguments);return a?a.join(","):"key"};g.v(xf,wf);xf.prototype.B=function(a){var b=g.Da.apply(1,arguments),c=0,d=this.IU(b);d&&(c=d.wL);this.NP(c+a,b)};g.v(yf,wf);yf.prototype.Hl=function(a){this.FT(a,g.Da.apply(1,arguments))};g.G.prototype.Bi=!1;g.G.prototype.isDisposed=function(){return this.Bi}; g.G.prototype.dispose=function(){this.Bi||(this.Bi=!0,this.qa())}; g.G.prototype.qa=function(){if(this.Zf)for(;this.Zf.length;)this.Zf.shift()()};g.Cf.prototype.stopPropagation=function(){this.u=!0}; g.Cf.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ef={};var Waa=function(){if(!g.C.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{g.C.addEventListener("test",g.La,b),g.C.removeEventListener("test",g.La,b)}catch(c){}return a}();var XCa=Hf("AnimationEnd"),UFa=Hf("TransitionEnd");g.Va(If,g.Cf);var NRa={2:"touch",3:"pen",4:"mouse"}; If.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?Em&&(wc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX? a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:NRa[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&If.qe.preventDefault.call(this)}; If.prototype.stopPropagation=function(){If.qe.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; If.prototype.preventDefault=function(){If.qe.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Jf="closure_listenable_"+(1E6*Math.random()|0);var Taa=0;var ig="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");lg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var k=ng(a,b,d,e);-1>>0);g.Va(g.Fg,g.G);g.Fg.prototype[Jf]=!0;g.h=g.Fg.prototype;g.h.addEventListener=function(a,b,c,d){g.pg(this,a,b,c,d)}; g.h.removeEventListener=function(a,b,c,d){Ag(this,a,b,c,d)}; g.h.dispatchEvent=function(a){var b=this.Ia;if(b){var c=[];for(var d=1;b;b=b.Ia)c.push(b),++d}b=this.ib;d=a.type||a;if("string"===typeof a)a=new g.Cf(a,b);else if(a instanceof g.Cf)a.target=a.target||b;else{var e=a;a=new g.Cf(d,b);g.jg(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var k=a.currentTarget=c[f];e=Gg(k,d,!0,a)&&e}a.u||(k=a.currentTarget=b,e=Gg(k,d,!0,a)&&e,a.u||(e=Gg(k,d,!1,a)&&e));if(c)for(f=0;!a.u&&fl?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+k+l+d+(null!=e?";samesite="+ e:"")}; g.h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;ed&&this.Daw||401===w||0===w);x&&(c.u=y.concat(c.u),c.va||c.j.enabled||c.j.start());b&&b("net-send-failed",w)},t=function(){c.Ra?c.Ra.send(n,p,q):c.gb(n,p,q)}; m?m.then(function(w){n.wr["Content-Encoding"]="gzip";n.wr["Content-Type"]="application/binary";n.body=w;n.NT=2;t()},function(){t()}):t()}}}}; g.h.YE=function(){this.flush()}; g.v(nda,g.Cf);hda.prototype.ye=function(a,b){b=void 0===b?0:b;var c=this.j.clone();var d=Date.now().toString();c=g.D(c,4,d);a=ze(c,3,a);b&&g.D(a,14,b);return a};qda.prototype.ye=function(){var a=new Hj(1654,this.ma?this.ma:Ki,"0",this.J,this.B,this.C,!1,this.xa,void 0,void 0,this.K?this.K:void 0);this.X&&Gj(a.J,this.X);if(this.u){var b=this.u,c=Ij(a.J);g.D(c,7,b)}this.D&&(a.N=this.D);this.j&&(a.Z=this.j);this.N&&((b=this.N)?(a.C||(a.C=new Li),b=Ge(b),g.D(a.C,4,b)):a.C&&oe(a.C,4));this.ra&&(b=this.ra,a.C||(a.C=new Li),le(a.C,2,b));this.Z&&(b=this.Z,a.Pa=!0,kda(a,b));this.va&&oda(a.J,this.va);return a};rda.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new oca,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&Ik(f,k,l,"unexpected tag");f.j=1;f.u=0;f.C=0} function c(m){f.C++;5==f.C&&m&240&&Ik(f,k,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.N=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())} function d(m){f.D[f.N++]=m;f.N==f.u&&e()} function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.j=0} for(var f=this,k=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Yk(this,7):7==c?Yk(this,8):d||Yk(this,3)),this.u||(this.u=eea(this.j),null==this.u&&Yk(this,5)),2this.B){var k=a.length;c=[];try{if(this.u.Az())for(var l=0;lthis.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){Yk(this,5);Zk(this);break a}}4==b?(0!=e.length|| this.X?Yk(this,2):Yk(this,4),Zk(this)):Yk(this,1)}}}catch(p){Yk(this,6),Zk(this)}};g.h=fea.prototype;g.h.Rm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; g.h.addListener=function(a,b){this.Rm(a,b);return this}; g.h.removeListener=function(a,b){var c=this.u[a];c&&g.fc(c,b);(a=this.j[a])&&g.fc(a,b);return this}; g.h.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; g.h.aX=function(a){var b=this.u.data;b&&gea(a,b);(b=this.j.data)&&gea(a,b);this.j.data=[]}; g.h.KY=function(){switch(this.B.getStatus()){case 1:$k(this,"readable");break;case 5:case 6:case 4:case 7:case 3:$k(this,"error");break;case 8:$k(this,"close");break;case 2:$k(this,"end")}};hea.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return iea(function(k){var l=k.uA(),m=k.getMetadata(),n=lea(e,!1);m=mea(e,m,n,f+l.getName());var p=nea(n,l.u,!0);k=l.j(k.j);n.send(m,"POST",k);return p},this.C).call(this,Mda(d,b,c))};al.prototype.create=function(a,b){return Zj(this.j,"https://web.archive.org/web/20220328145930/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},YRa)}; al.prototype.ping=function(a,b){return Zj(this.j,"https://web.archive.org/web/20220328145930/https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},ZRa)};g.v(el,Error);g.v(fl,g.G);g.v(hl,fl);hl.prototype.Rt=function(a){++this.D>=this.J&&this.B.resolve();var b=new Lj(this.logger,"C");a=new Lda(this.C(a.mw));b.done();b=a.u;var c=this.j;c=ve(c,nf,3===re(c,qf)?3:-1);c||(c=new nf,a=Nc(a.B),g.D(c,2,a),ye(this.j,3,qf,c));g.D(c,1,b);return g.af(this.j,Raa)}; g.v(il,fl);il.prototype.Rt=function(){return this.j}; g.v(jl,fl);jl.prototype.Rt=function(){if(this.j){var a=this.j;this.j=void 0;return a}return this.C}; dl.prototype.isReady=function(){return!!this.j}; dl.prototype.ready=function(){var a=this;return g.B(function(b){return g.A(b,a.u.promise,0)})}; dl.prototype.Rt=function(a){if(!this.j)throw Error("SGK:Not ready");var b=new Lj(this.logger,this.j.u);try{return this.j.Rt(a)}catch(e){b=new Lj(this.logger,"e");var c=new el(5,e);this.logger.qx(c.code);var d;null==(d=this.onError)||d.call(this,c);return(new jl(c)).Rt()}finally{b.done()}};var en;en=["av.default","js","unreleased"].slice(-1)[0];var Um=document,zl=window;var Bea={NONE:0,J5:1},ofa={fR:0,Eca:1,Dca:2,Fca:3},nfa={d1:"a",A5:"d",VIDEO:"v"};ll.prototype.isVisible=function(){return this.Fq?.3<=this.md:.5<=this.md};var vl={g2:0,d6:1},lfa={NONE:0,v7:1,A6:2};ml.prototype.getValue=function(){return this.Yc}; g.v(nl,ml);nl.prototype.setValue=function(a){if(null!==this.Yc||!g.Zf(this.u,a))return!1;this.Yc=a;return!0}; g.v(ol,ml);ol.prototype.setValue=function(a){if(null!==this.Yc||"number"!==typeof a)return!1;this.Yc=a;return!0}; g.v(pl,ml);pl.prototype.setValue=function(a){if(null!==this.Yc||"string"!==typeof a)return!1;this.Yc=a;return!0};ql.prototype.disable=function(){this.u=!1}; ql.prototype.enable=function(){this.u=!0}; ql.prototype.isEnabled=function(){return this.u}; ql.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var sga=!g.Mc&&!Lb();wl.prototype.now=function(){return 0}; wl.prototype.u=function(){return 0}; wl.prototype.B=function(){return 0}; wl.prototype.j=function(){return 0};g.v(yl,wl);yl.prototype.now=function(){return xl()&&zl.performance.now?zl.performance.now():wl.prototype.now.call(this)}; yl.prototype.u=function(){return xl()&&zl.performance.memory?zl.performance.memory.totalJSHeapSize||0:wl.prototype.u.call(this)}; yl.prototype.B=function(){return xl()&&zl.performance.memory?zl.performance.memory.usedJSHeapSize||0:wl.prototype.B.call(this)}; yl.prototype.j=function(){return xl()&&zl.performance.memory?zl.performance.memory.jsHeapSizeLimit||0:wl.prototype.j.call(this)};var Eea=Lg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.C.addEventListener("test",null,b)}catch(c){}return a});Hea.prototype.isVisible=function(){return 1===Bl(Um)};g.Tg("csi.gstatic.com");g.Tg("googleads.g.doubleclick.net");g.Tg("partner.googleadservices.com");g.Tg("pubads.g.doubleclick.net");g.Tg("securepubads.g.doubleclick.net");g.Tg("tpc.googlesyndication.com");var Lea=/https?:\/\/[^\/]+/,Jea={u0:"allow-forms",v0:"allow-modals",w0:"allow-orientation-lock",x0:"allow-pointer-lock",y0:"allow-popups",z0:"allow-popups-to-escape-sandbox",A0:"allow-presentation",B0:"allow-same-origin",C0:"allow-scripts",D0:"allow-top-navigation",E0:"allow-top-navigation-by-user-activation"},Oea=Lg(function(){return Kea()});var Sea=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ol.prototype.setInterval=function(a,b){return zl.setInterval(a,b)}; Ol.prototype.clearInterval=function(a){zl.clearInterval(a)}; Ol.prototype.setTimeout=function(a,b){return zl.setTimeout(a,b)}; Ol.prototype.clearTimeout=function(a){zl.clearTimeout(a)};dfa.prototype.getContext=function(){if(!this.j){if(!zl)throw Error("Context has not been set and window is undefined.");this.j=Nl(Ol)}return this.j};g.v(efa,g.F);var mfa={cca:1,yT:2,X$:3};Zg(Sg(g.Tg("https://web.archive.org/web/20220328145930/https://pagead2.googlesyndication.com/pagead/osd.js")));pfa.prototype.qH=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.h.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};xm.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&vm(this.j,a.j)&&!0};ym.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.N==a.N&&vm(this.B,a.B)&&vm(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.K==a.K};var gSa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fo={uT:"start",kR:"firstquartile",pT:"midpoint",vT:"thirdquartile",bR:"complete",oT:"metric",PAUSE:"pause",sT:"resume",tT:"skip",xT:"viewable_impression",qT:"mute",wT:"unmute",lR:"fullscreen",iR:"exitfullscreen",ZQ:"bufferstart",YQ:"bufferfinish",mR:"fully_viewable_audible_half_duration_impression",nT:"measurable_impression",SQ:"abandon",hR:"engagedview",nR:"impression",cR:"creativeview",mT:"loaded",kca:"progress",CLOSE:"close", T1:"collapse",kba:"overlay_resize",lba:"overlay_unmeasurable_impression",mba:"overlay_unviewable_impression",oba:"overlay_viewable_immediate_impression",nba:"overlay_viewable_end_of_session_impression",dR:"custom_metric_viewable",dba:"verification_debug",TQ:"audio_audible",VQ:"audio_measurable",UQ:"audio_impression"},dia="start firstquartile midpoint thirdquartile resume loaded".split(" "),eia=["start","firstquartile","midpoint","thirdquartile"],Tga=["abandon"],Ao={UNKNOWN:-1,uT:0,kR:1,pT:2,vT:3, bR:4,oT:5,PAUSE:6,sT:7,tT:8,xT:9,qT:10,wT:11,lR:12,iR:13,mR:14,nT:15,SQ:16,hR:17,nR:18,cR:19,mT:20,dR:21,ZQ:22,YQ:23,UQ:24,VQ:25,TQ:26};var Cfa={g0:"addEventListener",C6:"getMaxSize",D6:"getScreenSize",E6:"getState",F6:"getVersion",zca:"removeEventListener",R7:"isViewable"};g.h=g.Am.prototype;g.h.clone=function(){return new g.Am(this.left,this.top,this.width,this.height)}; g.h.contains=function(a){return a instanceof g.Bh?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.h.distance=function(a){var b=a.x=this.N?a:this;b!==this.j?(this.J=this.j.J,Zm(this)):this.J!==this.j.J&&(this.J=this.j.J,Zm(this))}; g.h.Ho=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.X);this.C=a;b&&Ufa(this)}}; g.h.Jl=function(){return this.X}; g.h.dispose=function(){this.va=!0}; g.h.isDisposed=function(){return this.va};g.h=$m.prototype;g.h.fD=function(){return!0}; g.h.hv=function(){}; g.h.dispose=function(){if(!this.isDisposed()){var a=this.u;g.fc(a.D,this);a.X&&this.Jl()&&Tfa(a);this.hv();this.Z=!0}}; g.h.isDisposed=function(){return this.Z}; g.h.xo=function(){return this.u.xo()}; g.h.Dm=function(){return this.u.Dm()}; g.h.gt=function(){return this.u.gt()}; g.h.Zw=function(){return this.u.Zw()}; g.h.At=function(){}; g.h.Ho=function(){this.Kn()}; g.h.Jl=function(){return this.ma};g.h=an.prototype;g.h.Dm=function(){return this.j.Dm()}; g.h.gt=function(){return this.j.gt()}; g.h.Zw=function(){return this.j.Zw()}; g.h.create=function(a,b,c){var d=null;this.j&&(d=this.fz(a,b,c),Ym(this.j,d));return d}; g.h.wJ=function(){return this.ov()}; g.h.ov=function(){return!1}; g.h.init=function(a){return this.j.initialize()?(Ym(this.j,this),this.C=a,!0):!1}; g.h.At=function(a){0==a.Dm()&&this.C(a.gt(),this)}; g.h.Ho=function(){}; g.h.Jl=function(){return!1}; g.h.dispose=function(){this.D=!0}; g.h.isDisposed=function(){return this.D}; g.h.xo=function(){return{}};bn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.j,f=e.push;a=new Vfa(a,b,c);d=new Vfa(a.j,a.Yc,a.u+d);f.call(e,d);this.u=!0;return this};$fa.prototype.toString=function(){var a="//web.archive.org/web/20220328145930/https://pagead2.googlesyndication.com//pagead/gen_204",b=dn(this.j);0=k;k=!(0=k)||c;this.j[e].update(f&&l,d,!f||k)}};nn.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.md):b.md;this.ma=Math.max(this.ma,b.md);this.ra=-1!=this.ra?Math.min(this.ra,b.Ah):b.Ah;this.xa=Math.max(this.xa,b.Ah);this.Wa.update(b.Ah,c.Ah,b.j,a,d);this.u.update(b.md,c.md,b.j,a,d);c=d||c.Fq!=b.Fq?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ia.update(c,a,b)}; nn.prototype.Km=function(){return this.Ia.B>=this.Va};var lga=[qn("data"),qn("http"),qn("https"),qn("mailto"),qn("ftp"),new pn(function(a){return/^[^:]*([/?#]|$)/.test(a)})];if(Um&&Um.URL){var E_=Um.URL,F_;if(F_=!!E_){var G_;a:{if(E_){var hSa=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var H_=hSa.exec(decodeURIComponent(E_));if(H_){G_=H_[1]&&1=(this.Fq()?.3:.5),this.JI(f,a,d),this.lastUpdateTime=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new tm(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.hN(c)?c=new tm(0,0,0,0):(d=Tm().C,b=new tm(0,d.height,d.width,0),d=tn(c,this.j),e=tn(c,Tm().j),b=tn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new tm(0,0,0, 0):wm(c,-this.j.left,-this.j.top);Vm()||(e=d=0);this.K=new ym(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.h.getName=function(){return this.u.getName()};var mSa=new tm(0,0,0,0);g.v(Yn,Kn);g.h=Yn.prototype;g.h.fD=function(){this.B();return!0}; g.h.Ho=function(){Kn.prototype.Kn.call(this)}; g.h.pL=function(){}; g.h.qE=function(){}; g.h.Kn=function(){this.B();Kn.prototype.Kn.call(this)}; g.h.At=function(a){a=a.isActive();a!==this.J&&(a?this.B():(Tm().j=new tm(0,0,0,0),this.j=new tm(0,0,0,0),this.C=new tm(0,0,0,0),this.timestamp=-1));this.J=a};var L_={},Rga=(L_.firstquartile=0,L_.midpoint=1,L_.thirdquartile=2,L_.complete=3,L_);g.v($n,un);g.h=$n.prototype;g.h.Jl=function(){return!0}; g.h.Jm=function(){return 2==this.Ig}; g.h.tM=function(a){return uga(this,a,Math.max(1E4,this.B/3))}; g.h.Ja=function(a,b,c,d,e,f,k){var l=this,m=this.K(this)||{};g.jg(m,e);this.B=m.duration||this.B;this.X=m.isVpaid||this.X;this.Ha=m.isYouTube||this.Ha;e=Jga(this,b);1===Iga(this)&&(f=e);un.prototype.Ja.call(this,a,b,c,d,m,f,k);this.Qq&&this.Qq.u&&g.tc(this.J,function(n){n.D(l)})}; g.h.JI=function(a,b,c){un.prototype.JI.call(this,a,b,c);co(this).update(a,b,this.Ff,c);this.Wa=yn(this.Ff)&&yn(b);-1==this.xa&&this.Va&&(this.xa=this.Dg().B.j);this.wf.B=0;a=this.Km();b.isVisible()&&En(this.wf,"vs");a&&En(this.wf,"vw");Rm(b.volume)&&En(this.wf,"am");yn(b)&&En(this.wf,"a");this.Ct&&En(this.wf,"f");-1!=b.u&&(En(this.wf,"bm"),1==b.u&&En(this.wf,"b"));yn(b)&&b.isVisible()&&En(this.wf,"avs");this.Wa&&a&&En(this.wf,"avw");0this.j.N&&(this.j=this,Zm(this)),this.N=a);return 2==a};to.prototype.sample=function(){wo(this,lo(),!1)}; to.prototype.C=function(){var a=Vm(),b=jm();a?(lm||(mm=b,g.tc(ko.j,function(c){var d=c.Dg();d.Ha=Hn(d,b,1!=c.Ig)})),lm=!0):(this.K=rha(this,b),lm=!1,Sga=b,g.tc(ko.j,function(c){c.Zz&&(c.Dg().N=b)})); wo(this,lo(),!a)}; var uo=Nl(to);var tha=null,Vo="",Uo=!1;var wha=vha().Xk,zo=vha().bl;var zha={f6:"visible",e1:"audible",jea:"time",lea:"timetype"},Aha={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return"0"==a||"1"==a}, timetype:function(a){return"mtos"==a||"tos"==a}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.v(Do,In);Do.prototype.getId=function(){return this.K}; Do.prototype.J=function(){return!0}; Do.prototype.j=function(a){var b=a.Dg(),c=a.getDuration();return Sm(this.N,function(d){if(void 0!=d.j)var e=Cha(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0=d);return d})};g.v(Eo,Dha);Eo.prototype.u=function(){return null}; Eo.prototype.B=function(){return[]};g.v(Fo,Dga);Fo.prototype.j=function(a){var b=new Cn;b.j=Dn(a,jSa);b.u=Dn(a,lSa);return b};g.v(Go,In);Go.prototype.j=function(a){return Lga(a)};g.v(Ho,Dha);g.v(Io,In);Io.prototype.j=function(a){return a.Dg().Km()};g.v(Jo,Jn);Jo.prototype.j=function(a){var b=g.bc(this.K,tl(Sl().featureSet,"ovms"));return!a.Oo&&(0!=a.Ig||b)};g.v(Ko,Ho);Ko.prototype.u=function(){return new Jo(this.j)}; Ko.prototype.B=function(){return[new Io("viewable_impression",this.j),new Go(this.j)]};g.v(Lo,Yn);Lo.prototype.B=function(){var a=g.Ka("ima.admob.getViewability"),b=tl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; Lo.prototype.getName=function(){return"gsv"};g.v(Mo,an);Mo.prototype.getName=function(){return"gsv"}; Mo.prototype.ov=function(){var a=Tm();Sl();return a.u&&!1}; Mo.prototype.fz=function(a,b,c){return new Lo(this.j,b,c)};g.v(No,Yn);No.prototype.B=function(){var a=this,b=g.Ka("ima.bridge.getNativeViewability"),c=tl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.bg(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Nfa(d.opt_nativeViewBounds||{});var k=a.u.C;k.j=f?mSa.clone():Nfa(e);a.timestamp=d.opt_nativeTime||-1;Tm().j=k.j;d=d.opt_nativeVolume;void 0!==d&&(k.volume=d)})}; No.prototype.getName=function(){return"nis"};g.v(Oo,an);Oo.prototype.getName=function(){return"nis"}; Oo.prototype.ov=function(){var a=Tm();Sl();return a.u&&!1}; Oo.prototype.fz=function(a,b,c){return new No(this.j,b,c)};g.v(Po,Xm);g.h=Po.prototype;g.h.fv=function(){return null!=this.u.Vj}; g.h.qM=function(){var a={};this.Da&&(a.mraid=this.Da);this.ra&&(a.mlc=1);a.mtop=this.u.YZ;this.K&&(a.mse=this.K);this.Ha&&(a.msc=1);a.mcp=this.u.compatibility;return a}; g.h.mp=function(a){var b=g.Da.apply(1,arguments);try{return this.u.Vj[a].apply(this.u.Vj,b)}catch(c){im(538,c,.01,function(d){d.method=a})}}; g.h.initialize=function(){var a=this;if(this.isInitialized)return!this.Zw();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.fail("w"),!1;Tm().N=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?Hha(this):rn(this.B,"load",function(){Pl().setTimeout(hm(292,function(){return Hha(a)}),100)},292); return!0}; g.h.uJ=function(){var a=Tm(),b=Mha(this,"getMaxSize");a.j=new tm(0,b.width,b.height,0)}; g.h.vJ=function(){Tm().C=Mha(this,"getScreenSize")}; g.h.dispose=function(){Jha(this);Xm.prototype.dispose.call(this)};g.h=Ro.prototype;g.h.qw=function(a){vn(a,!1);eha(a)}; g.h.CA=function(){}; g.h.iy=function(a,b,c,d){var e=this;b=c?b:-1;c=this.IL();a=new $n(zl,a,b,7,this.GE(),c.u(),c.B());a.Uf=d;zea(a.featureSet);sl(a.featureSet,"queryid",a.Uf);a.qH("");xga(a,function(){return e.GM.apply(e,g.u(g.Da.apply(0,arguments)))},function(){return e.cV.apply(e,g.u(g.Da.apply(0,arguments)))}); (d=Nl(mo).j)&&tga(a,d);a.Zg.Ro&&Nl(nha);return a}; g.h.At=function(a){switch(a.Dm()){case 0:if(a=Nl(mo).j)a=a.j,g.fc(a.D,this),a.X&&this.Jl()&&Tfa(a);To();break;case 2:vo()}}; g.h.Ho=function(){}; g.h.Jl=function(){return!1}; g.h.cV=function(a,b){a.Oo=!0;switch(a.ol()){case 1:Sha(a,b);break;case 2:this.BH(a)}this.PH()}; g.h.kV=function(a){var b=a.K(a);b&&(b=b.volume,a.Xa=Rm(b)&&0a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.j=-1)}; lp.prototype.get=function(a){return!!this.data_[a]};g.Va(g.mp,g.G);g.h=g.mp.prototype;g.h.start=function(){this.stop();this.C=!1;var a=ria(this),b=sia(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.pg(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(Yaa(this.B),20)}; g.h.stop=function(){if(this.isActive()){var a=ria(this),b=sia(this);a&&!b&&this.u.mozRequestAnimationFrame?Cg(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null}; g.h.isActive=function(){return null!=this.j}; g.h.KR=function(){this.C&&this.j&&Cg(this.j);this.j=null;this.J.call(this.D,g.Ua())}; g.h.qa=function(){this.stop();g.mp.qe.qa.call(this)};g.Va(g.L,g.G);g.h=g.L.prototype;g.h.qv=0;g.h.qa=function(){g.L.qe.qa.call(this);this.stop();delete this.j;delete this.u}; g.h.start=function(a){this.stop();this.qv=g.zi(this.B,void 0!==a?a:this.hg)}; g.h.stop=function(){this.isActive()&&g.C.clearTimeout(this.qv);this.qv=0}; g.h.isActive=function(){return 0!=this.qv}; g.h.yJ=function(){this.qv=0;this.j&&this.j.call(this.u)};rp.prototype[Symbol.iterator]=function(){return this}; rp.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};yp.prototype.Hh=function(){return new zp(this.u())}; yp.prototype[Symbol.iterator]=function(){return new Ap(this.u())}; yp.prototype.j=function(){return new Ap(this.u())}; g.v(zp,g.wn);zp.prototype.next=function(){return this.u.next()}; zp.prototype[Symbol.iterator]=function(){return new Ap(this.u)}; zp.prototype.j=function(){return new Ap(this.u)}; g.v(Ap,yp);Ap.prototype.next=function(){return this.B.next()};g.h=g.Cp.prototype;g.h.Mi=function(){Ep(this);for(var a=[],b=0;b2*this.size&&Ep(this),!0):!1}; g.h.get=function(a,b){return Dp(this.u,a)?this.u[a]:b}; g.h.set=function(a,b){Dp(this.u,a)||(this.size+=1,this.j.push(a),this.Ap++);this.u[a]=b}; g.h.forEach=function(a,b){for(var c=this.zm(),d=0;d=d.j.length)return g.I_;var f=d.j[b++];return g.xn(a?f:d.u[f])}; return e};g.Va(g.Fp,g.Fg);g.h=g.Fp.prototype;g.h.Ic=function(){return 1==this.j}; g.h.rB=function(){this.Ji("begin")}; g.h.Jx=function(){this.Ji("end")}; g.h.onFinish=function(){this.Ji("finish")}; g.h.Ji=function(a){this.dispatchEvent(a)};var sSa=Lg(function(){if(g.Mc)return g.Cc("10.0");var a=g.Yh("DIV"),b=g.Gf?"-webkit":Em?"-moz":g.Mc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!SRa.test("div"))throw Error("");if("DIV"in URa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!SRa.test(l))throw Error("");var f=b[l];if(null!=f){var k=l;if(f instanceof Rg)f=Sg(f);else if("style"==k.toLowerCase()){if(!g.Pa(f))throw Error(""); f instanceof hh||(f=fba(f));f=ih(f)}else{if(/^on/i.test(k))throw Error("");if(k.toLowerCase()in TRa)if(f instanceof Xg)f=Yg(f).toString();else if(f instanceof g.ah)f=g.bh(f);else if("string"===typeof f)f=g.eh(f).Nh();else throw Error("");}f.xl&&(f=f.Nh());k=k+'="'+tb(String(f))+'"';e+=" "+k}}var l="":(c=qba(d),l+=">"+g.qh(c).toString()+"",c=c.hs());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=rh(l,c);g.uba(a,b);return""!= g.Fm(a.firstChild,"transition")});g.Va(Gp,g.Fp);g.h=Gp.prototype;g.h.play=function(){if(this.Ic())return!1;this.rB();this.Ji("play");this.startTime=g.Ua();this.j=1;if(sSa())return g.Dm(this.u,this.K),this.C=g.zi(this.rZ,void 0,this),!0;this.gD(!1);return!1}; g.h.rZ=function(){g.Om(this.u);xia(this.u,this.N);g.Dm(this.u,this.D);this.C=g.zi((0,g.Sa)(this.gD,this,!1),1E3*this.J)}; g.h.stop=function(){this.Ic()&&this.gD(!0)}; g.h.gD=function(a){g.Dm(this.u,"transition","");g.C.clearTimeout(this.C);g.Dm(this.u,this.D);this.endTime=g.Ua();this.j=0;if(a)this.Ji("stop");else this.onFinish();this.Jx()}; g.h.qa=function(){this.stop();Gp.qe.qa.call(this)}; g.h.pause=function(){};var zia=g.La;var Bia={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};Ip("Element","attributes")||Ip("Node","attributes");Ip("Element","innerHTML")||Ip("HTMLElement","innerHTML");Ip("Node","nodeName");Ip("Node","nodeType");Ip("Node","parentNode");Ip("Node","childNodes");Ip("HTMLElement","style")||Ip("Element","style");Ip("HTMLStyleElement","sheet");var Hia=Dia("getPropertyValue"),Iia=Dia("setProperty");Ip("Element","namespaceURI")||Ip("Node","namespaceURI");var Gia={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.Lp.prototype.clone=function(){return new g.Lp(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.N)}; g.Lp.prototype.equals=function(a){return this.j==a.j&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.J==a.J&&this.u==a.u&&this.N==a.N};Np.prototype.clone=function(){return new Np(this.start,this.end)};var tSa=new WeakMap;(function(){if($Ma){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ab()))?a[1]:"0"}return DQ?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Ab()))?a[0].replace(/_/g,"."):"10"):g.bs?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ab()))?a[1]:""):HRa||IRa||JRa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ab()))?a[1].replace(/_/g,"."):""):""})();var Pia=function(){if(g.yx)return Op(/Firefox\/([0-9.]+)/);if(g.Mc||g.ht||g.iC)return zc;if(g.gA){if(Sb()||Tb()){var a=Op(/CriOS\/([0-9.]+)/);if(a)return a}return Op(/Chrome\/([0-9.]+)/)}if(g.Ks&&!Sb())return Op(/Version\/([0-9.]+)/);if(rC||xE){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ab()))return a[1]+"."+a[2]}else if(g.jC)return(a=Op(/Android\s+([0-9.]+)/))?a:Op(/Version\/([0-9.]+)/);return""}();g.Va(g.Qp,g.G);g.h=g.Qp.prototype;g.h.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.J=e+3;d.push(e);return e}; g.h.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Mf(a)}return!1}; g.h.Mf=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=g.La):(c&&g.fc(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.h.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.I_;var e=c.key(b++);if(a)return g.xn(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.xn(e)}; return d}; g.h.clear=function(){this.j.clear()}; g.h.key=function(a){return this.j.key(a)};g.Va(Xp,Wp);g.Va(Via,Wp);g.Va(Zp,Vp);var Wia={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Yp=null;g.h=Zp.prototype;g.h.isAvailable=function(){return!!this.j}; g.h.set=function(a,b){this.j.setAttribute($p(a),b);aq(this)}; g.h.get=function(a){a=this.j.getAttribute($p(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.h.remove=function(a){this.j.removeAttribute($p(a));aq(this)}; g.h.Hh=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.wn;d.next=function(){if(b>=c.length)return g.I_;var e=c[b++];if(a)return g.xn(decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.xn(e)}; return d}; g.h.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)dc(a);else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,k=2*a+2;f=ke.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.h.Mi=function(){for(var a=this.j,b=[],c=a.length,d=0;d=N.Hn)||l.j.version>=aa||l.j.objectStoreNames.contains(J)||E.push(J)}m=E;if(0===m.length){y.Ya(5);break}n=Object.keys(c.options.Sq);p= l.objectStoreNames();if(c.Jc.options.version+1)throw t.close(),c.C=!1,Ina(c,w);return y.return(t);case 10:throw b(),q instanceof Error&&!g.Q("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+k.substring(k.indexOf("\n")+1)),Ls(q,c.name,"",null!=(x=c.options.version)?x:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw Ina(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,i_:b,upgrade:this.options.upgrade};return this.j=d=a()};var ft=new dt("YtIdbMeta",{Sq:{databases:{Hn:1}},upgrade:function(a,b){b(1)&&g.Us(a,"databases",{keyPath:"actualName"})}});var kt,jt=new function(){}(new function(){});new g.Pj;g.h=nt.prototype;g.h.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.fd&&this.ze){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.sf.set(d,this.fd).then(function(e){d.id=e;c.hf.Me()&&pt(c,d)}).catch(function(e){pt(c,d); ot(c,e)})}else this.cn(a,b)}; g.h.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;Promise.resolve().then(function(){Yna(d,a,b,c)})}; g.h.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.fd&&this.ze){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(k,l){void 0!==d.id?c.sf.Vs(d.id,c.fd):e=!0;c.hf.Qm&&c.kb&&c.kb("vss_network_hint")&&c.hf.Qm(!0);f(k,l)}; this.cn(d.url,d.options);this.sf.set(d,this.fd).then(function(k){d.id=k;e&&c.sf.Vs(d.id,c.fd)}).catch(function(k){ot(c,k)})}else this.cn(a,b)}; g.h.Jy=function(){var a=this;if(!this.fd)throw g.Ms("throttleSend");this.j||(this.j=this.Sj.dg(function(){var b;return g.B(function(c){if(1==c.j)return g.A(c,a.sf.uM("NEW",a.fd),2);if(3!=c.j)return b=c.u,b?g.A(c,pt(a,b),3):(a.rL(),c.return());a.j&&(a.j=0,a.Jy());g.ua(c)})},this.iQ))}; g.h.rL=function(){this.Sj.Gi(this.j);this.j=0};rt.prototype.toString=function(){return this.topic};var DSa=g.Ka("ytPubsub2Pubsub2Instance")||new g.Qp;g.Qp.prototype.subscribe=g.Qp.prototype.subscribe;g.Qp.prototype.unsubscribeByKey=g.Qp.prototype.Mf;g.Qp.prototype.publish=g.Qp.prototype.ea;g.Qp.prototype.clear=g.Qp.prototype.clear;g.Ja("ytPubsub2Pubsub2Instance",DSa,void 0);var vt=g.Ka("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ja("ytPubsub2Pubsub2SubscribedKeys",vt,void 0);var wt=g.Ka("ytPubsub2Pubsub2TopicToKeys")||{};g.Ja("ytPubsub2Pubsub2TopicToKeys",wt,void 0); var boa=g.Ka("ytPubsub2Pubsub2IsAsync")||{};g.Ja("ytPubsub2Pubsub2IsAsync",boa,void 0);g.Ja("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.v(At,dt);At.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.yy?Rna:Qna)(a,b,Object.assign({},c))}; At.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.yy?Vna:Sna)(this.name,a)};var Ct;var ESa={},koa=g.Bt("ServiceWorkerLogsDatabase",{Sq:(ESa.SWHealthLog={Hn:1},ESa),yy:!0,upgrade:function(a,b){b(1)&&g.Zs(g.Us(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var It={},qoa=0;Jt.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; Jt.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null}; Jt.prototype.removeParams=function(a){return a.split("?")[0]}; Jt.prototype.removeParams=Jt.prototype.removeParams;Jt.prototype.isEndpointCFR=Jt.prototype.isEndpointCFR;Jt.prototype.requestComplete=Jt.prototype.requestComplete;Jt.getInstance=Kt;var Lt;var xoa=g.Yq("network_polling_interval",3E4);g.v(Nt,g.Fg);g.h=Nt.prototype;g.h.Me=function(){if(g.Q("use_shared_nsm")&&this.j){var a;return null==(a=this.j)?void 0:a.Me()}return this.u}; g.h.Qm=function(a){if(g.Q("use_shared_nsm")&&this.j){var b;null!=(b=this.j)&&(b.j=a)}else a!==this.u&&(this.u=a)}; g.h.ZV=function(a){!g.Q("use_shared_nsm")&&(this.C=!0,void 0===a?0:a)&&(this.N||woa(this))}; g.h.wF=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.h.qU=function(){this.J=!0}; g.h.Oa=function(a,b){return g.Q("use_shared_nsm")&&this.j?this.j.Oa(a,b):g.Fg.prototype.Oa.call(this,a,b)}; g.h.dn=function(a){var b=this;if(g.Q("use_shared_nsm")&&this.j){var c=ip(this.j,a);c.then(function(d){g.Q("use_cfr_monitor")&&Kt().requestComplete("generate_204",d)}); return c}return this.D?this.D:this.D=new Promise(function(d){var e,f,k,l;return g.B(function(m){switch(m.j){case 1:return e=window.AbortController?new window.AbortController:void 0,k=null==(f=e)?void 0:f.signal,l=!1,g.va(m,2,3),e&&(b.K=g.kp.dg(function(){e.abort()},a||2E4)),g.A(m,fetch("/generate_204",{method:"HEAD", signal:k}),5);case 5:l=!0;case 3:g.ya(m);g.Q("use_cfr_monitor")&&Kt().requestComplete("generate_204",l);b.D=void 0;b.K&&g.kp.Gi(b.K);l!==b.u&&(b.u=l,b.u&&b.C?b.dispatchEvent("ytnetworkstatus-online"):b.C&&b.dispatchEvent("ytnetworkstatus-offline"));d(l);g.za(m,0);break;case 2:g.xa(m),l=!1,m.Ya(3)}})})}; Nt.prototype.sendNetworkCheckRequest=Nt.prototype.dn;Nt.prototype.listen=Nt.prototype.Oa;Nt.prototype.enableErrorFlushing=Nt.prototype.qU;Nt.prototype.getWindowStatus=Nt.prototype.wF;Nt.prototype.monitorNetworkStatusChange=Nt.prototype.ZV;Nt.prototype.networkStatusHint=Nt.prototype.Qm;Nt.prototype.isNetworkAvailable=Nt.prototype.Me;Nt.getInstance=voa;g.v(g.Ot,g.Fg);g.Ot.prototype.Me=function(){var a=g.Ka("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.j)():!0}; g.Ot.prototype.Qm=function(a){var b=g.Ka("yt.networkStatusManager.instance.networkStatusHint").bind(this.j);b&&b(a)}; g.Ot.prototype.dn=function(a){var b=this,c;return g.B(function(d){c=g.Ka("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.j);return g.Q("skip_network_check_if_cfr")&&Kt().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Qm((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Me())})):c?d.return(c(a)):d.return(!0)})};var Rt;g.v(Pt,nt);Pt.prototype.writeThenSend=function(a,b){b||(b={});g.Es()||(this.ze=!1);nt.prototype.writeThenSend.call(this,a,b)}; Pt.prototype.sendThenWrite=function(a,b,c){b||(b={});g.Es()||(this.ze=!1);nt.prototype.sendThenWrite.call(this,a,b,c)}; Pt.prototype.sendAndWrite=function(a,b){b||(b={});g.Es()||(this.ze=!1);nt.prototype.sendAndWrite.call(this,a,b)}; Pt.prototype.awaitInitialization=function(){return this.u.promise};var Zt=0,au=0,bu,$t=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,potentialEsfErrorCounter:au};g.Ja("ytNetworklessLoggingInitializationOptions",$t,void 0);g.cu.prototype.isReady=function(){!this.config_&&Xma()&&(this.config_=g.os());return!!this.config_};var kpa={appSettingsCaptured:!0,visualElementAttached:!0,visualElementGestured:!0,visualElementHidden:!0,visualElementShown:!0,flowEvent:!0,visualElementStateChanged:!0,playbackAssociated:!0,youThere:!0,accountStateChangeSignedIn:!0,accountStateChangeSignedOut:!0},jpa={latencyActionBaselined:!0,latencyActionInfo:!0,latencyActionTicked:!0,bedrockRepetitiveActionTimed:!0,adsClientStateChange:!0,streamzIncremented:!0,mdxDialAdditionalDataUpdateEvent:!0,tvhtml5WatchKeyEvent:!0,tvhtml5VideoSeek:!0,tokenRefreshEvent:!0, adNotify:!0,adNotifyFilled:!0,tvhtml5LaunchUrlComponentChanged:!0,bedrockResourceConsumptionSnapshot:!0,deviceStartupMetrics:!0,mdxSignIn:!0,tvhtml5KeyboardLogging:!0,tvhtml5StartupSoundEvent:!0,tvhtml5LiveChatStatus:!0,tvhtml5DeviceStorageStatus:!0,tvhtml5LocalStorage:!0,directSignInEvent:!0,finalPayload:!0,tvhtml5SearchCompleted:!0,tvhtml5KeyboardPerformance:!0,adNotifyFailure:!0,latencyActionSpan:!0,tvhtml5AccountDialogOpened:!0,tvhtml5ApiTest:!0};var FSa=0,eu=g.Gf?"webkit":Em?"moz":g.Mc?"ms":g.iC?"o":"",GSa=g.Ka("ytDomDomGetNextId")||function(){return++FSa}; g.Ja("ytDomDomGetNextId",GSa,void 0);var Ioa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};gu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; gu.prototype.gN=function(){return this.event?!1===this.event.returnValue:!1}; gu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; gu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hu=g.C.ytEventsEventsListeners||{};g.Ja("ytEventsEventsListeners",hu,void 0);var Loa=g.C.ytEventsEventsCounter||{count:0};g.Ja("ytEventsEventsCounter",Loa,void 0);var tpa=Lg(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}),Moa=Lg(function(){var a=!1; try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});var TB=window.ytcsi&&window.ytcsi.now?window.ytcsi.now:window.performance&&window.performance.timing&&window.performance.now&&window.performance.timing.navigationStart?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.Va(tu,g.G);tu.prototype.X=function(a){void 0===a.j&&Joa(a);var b=a.j;void 0===a.u&&Joa(a);this.j=new g.Bh(b,a.u)}; tu.prototype.Ao=function(){return this.j||new g.Bh}; tu.prototype.Z=function(){if(this.j){var a=TB();if(0!=this.C){var b=this.J,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.j;this.B=(this.B+1)%4}}; tu.prototype.qa=function(){window.clearInterval(this.N);g.ju(this.ma)};var wu={};var HSa,zu,Bu;HSa=g.C.ytPubsubPubsubInstance||new g.Qp;zu=g.C.ytPubsubPubsubSubscribedKeys||{};Bu=g.C.ytPubsubPubsubTopicToKeys||{};g.Au=g.C.ytPubsubPubsubIsSynchronous||{};g.Qp.prototype.subscribe=g.Qp.prototype.subscribe;g.Qp.prototype.unsubscribeByKey=g.Qp.prototype.Mf;g.Qp.prototype.publish=g.Qp.prototype.ea;g.Qp.prototype.clear=g.Qp.prototype.clear;g.Ja("ytPubsubPubsubInstance",HSa,void 0);g.Ja("ytPubsubPubsubTopicToKeys",Bu,void 0);g.Ja("ytPubsubPubsubIsSynchronous",g.Au,void 0); g.Ja("ytPubsubPubsubSubscribedKeys",zu,void 0);var $oa=g.Yq("initial_gel_batch_timeout",2E3),ipa=Math.pow(2,16)-1,Iu=void 0,Ku=new Toa,Ju=new Toa,Ru=!0,Gu=g.C.ytLoggingTransportGELQueue_||new Map;g.Ja("ytLoggingTransportGELQueue_",Gu,void 0);var Hu=g.C.ytLoggingTransportGELProtoQueue_||new Map;g.Ja("ytLoggingTransportGELProtoQueue_",Hu,void 0);var Qu=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Ja("ytLoggingTransportTokensToCttTargetIds_",Qu,void 0);var Pu=g.C.ytLoggingTransportTokensToJspbCttTargetIds_||{}; g.Ja("ytLoggingTransportTokensToJspbCttTargetIds_",Pu,void 0);var Su=g.C.ytLoggingGelSequenceIdObj_||{};g.Ja("ytLoggingGelSequenceIdObj_",Su,void 0);var mpa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var rpa={};g.v($u,g.G);$u.prototype.T=function(a,b,c,d,e){c=cr((0,g.Sa)(c,d||this.Va));c={target:a,name:b,callback:c};var f;e&&tpa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.J.push(c);return c}; $u.prototype.vc=function(a){for(var b=0;b=this.start&&(aRSa.length)T_=void 0;else{var U_=QSa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);T_=U_&&6==U_.length?Number(U_[5].replace("_",".")):0}var yE=T_,aM=0<=yE;aM&&0<=g.Ab().search("Safari")&&g.Ab().search("Version");g.v(Lw,qt);g.v(Uqa,qt);var ara=new rt("aft-recorded",Lw),SSa=new rt("timing-sent",Uqa);var V_=window,Nw=V_.performance||V_.mozPerformance||V_.msPerformance||V_.webkitPerformance||new Vqa;var $qa=!1,xx={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc", 'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"}, lra=(0,g.Sa)(Nw.clearResourceTimings||Nw.webkitClearResourceTimings||Nw.mozClearResourceTimings||Nw.msClearResourceTimings||Nw.oClearResourceTimings||g.Kg,Nw);var W_={},fra=(W_.auto_search="LATENCY_ACTION_AUTO_SEARCH",W_.ad_to_ad="LATENCY_ACTION_AD_TO_AD",W_.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",W_["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",W_.app_startup="LATENCY_ACTION_APP_STARTUP",W_["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",W_["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",W_["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",W_.browse="LATENCY_ACTION_BROWSE",W_.cast_splash="LATENCY_ACTION_CAST_SPLASH", W_.channels="LATENCY_ACTION_CHANNELS",W_.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",W_["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",W_["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",W_["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",W_["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",W_["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",W_["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION", W_["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",W_["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",W_["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",W_["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",W_["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",W_.chips="LATENCY_ACTION_CHIPS",W_["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",W_["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS", W_.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",W_.embed="LATENCY_ACTION_EMBED",W_.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",W_.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",W_.explore="LATENCY_ACTION_EXPLORE",W_.home="LATENCY_ACTION_HOME",W_.library="LATENCY_ACTION_LIBRARY",W_.live="LATENCY_ACTION_LIVE",W_.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",W_.onboarding="LATENCY_ACTION_ONBOARDING",W_.parent_profile_settings= "LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",W_.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",W_.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",W_.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",W_["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",W_["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",W_.prebuffer="LATENCY_ACTION_PREBUFFER",W_.prefetch="LATENCY_ACTION_PREFETCH",W_.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",W_.profile_switcher="LATENCY_ACTION_LOGIN", W_.reel_watch="LATENCY_ACTION_REEL_WATCH",W_.results="LATENCY_ACTION_RESULTS",W_.search_ui="LATENCY_ACTION_SEARCH_UI",W_.search_suggest="LATENCY_ACTION_SUGGEST",W_.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",W_.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",W_.seek="LATENCY_ACTION_PLAYER_SEEK",W_.settings="LATENCY_ACTION_SETTINGS",W_.tenx="LATENCY_ACTION_TENX",W_.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",W_.watch="LATENCY_ACTION_WATCH",W_.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", W_["watch,watch7"]="LATENCY_ACTION_WATCH",W_["watch,watch7_html5"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad"]="LATENCY_ACTION_WATCH",W_["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",W_.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",W_.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",W_["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",W_["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",W_["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",W_["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR", W_["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",W_["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",W_["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",W_["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",W_["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",W_.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",W_.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",W_.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",W_),X_={},gra=(X_.ad_allowed="adTypesAllowed",X_.yt_abt="adBreakType",X_.ad_cpn="adClientPlaybackNonce",X_.ad_docid="adVideoId",X_.yt_ad_an="adNetworks",X_.ad_at="adType",X_.aida="appInstallDataAgeMs",X_.browse_id="browseId",X_.p="httpProtocol",X_.t="transportProtocol",X_.cs="commandSource",X_.cpn="clientPlaybackNonce",X_.ccs="creatorInfo.creatorCanaryState",X_.ctop="creatorInfo.topEntityType",X_.csn="clientScreenNonce",X_.docid="videoId",X_.GetHome_rid="requestIds", X_.GetSearch_rid="requestIds",X_.GetPlayer_rid="requestIds",X_.GetWatchNext_rid="requestIds",X_.GetBrowse_rid="requestIds",X_.GetLibrary_rid="requestIds",X_.is_continuation="isContinuation",X_.is_nav="isNavigation",X_.b_p="kabukiInfo.browseParams",X_.is_prefetch="kabukiInfo.isPrefetch",X_.is_secondary_nav="kabukiInfo.isSecondaryNav",X_.nav_type="kabukiInfo.navigationType",X_.prev_browse_id="kabukiInfo.prevBrowseId",X_.query_source="kabukiInfo.querySource",X_.voz_type="kabukiInfo.vozType",X_.yt_lt= "loadType",X_.mver="creatorInfo.measurementVersion",X_.yt_ad="isMonetized",X_.nr="webInfo.navigationReason",X_.nrsu="navigationRequestedSameUrl",X_.pnt="performanceNavigationTiming",X_.prt="playbackRequiresTap",X_.plt="playerInfo.playbackType",X_.pis="playerInfo.playerInitializedState",X_.paused="playerInfo.isPausedOnLoad",X_.yt_pt="playerType",X_.fmt="playerInfo.itag",X_.yt_pl="watchInfo.isPlaylist",X_.yt_pre="playerInfo.preloadType",X_.yt_ad_pr="prerollAllowed",X_.pa="previousAction",X_.yt_red= "isRedSubscriber",X_.rce="mwebInfo.responseContentEncoding",X_.rc="resourceInfo.resourceCache",X_.scrh="screenHeight",X_.scrw="screenWidth",X_.st="serverTimeMs",X_.ssdm="shellStartupDurationMs",X_.br_trs="tvInfo.bedrockTriggerState",X_.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",X_.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",X_.label="tvInfo.label",X_.is_mdx="tvInfo.isMdx",X_.preloaded="tvInfo.isPreloaded",X_.aac_type="tvInfo.authAccessCredentialType",X_.upg_player_vis="playerInfo.visibilityState", X_.query="unpluggedInfo.query",X_.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",X_.yt_vst="videoStreamType",X_.vph="viewportHeight",X_.vpw="viewportWidth",X_.yt_vis="isVisible",X_.rcl="mwebInfo.responseContentLength",X_.GetSettings_rid="requestIds",X_.GetTrending_rid="requestIds",X_.GetMusicSearchSuggestions_rid="requestIds",X_.REQUEST_ID="requestIds",X_),hra="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "), Y_={},ira=(Y_.ccs="CANARY_STATE_",Y_.mver="MEASUREMENT_VERSION_",Y_.pis="PLAYER_INITIALIZED_STATE_",Y_.yt_pt="LATENCY_PLAYER_",Y_.pa="LATENCY_ACTION_",Y_.ctop="TOP_ENTITY_TYPE_",Y_.yt_vst="VIDEO_STREAM_TYPE_",Y_),jra="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_SHOPPING_IN_APP:124, LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131, LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65, LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CAST:120, LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101, LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89, LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33, LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113, LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35, LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_PREBUFFER_VIDEO:144, LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_HOME:1,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER"; U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS"; U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP"; U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF"; U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM"; U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH"; U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION"; U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH"; U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH"; U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER"; U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM"; U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS"; U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX"; U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH"; U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS"; U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST"; U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS"; U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD"; U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS"; U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST"; U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD"; U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO"; U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN"; U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var jx={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};jx[jx.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE"; jx[jx.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";jx[jx.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var kx={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};kx[kx.CONN_INVALID]="CONN_INVALID";kx[kx.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";kx[kx.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA"; kx[kx.CONN_WIFI_METERED]="CONN_WIFI_METERED";kx[kx.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";kx[kx.CONN_DISCO]="CONN_DISCO";kx[kx.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";kx[kx.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";kx[kx.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";kx[kx.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";kx[kx.CONN_WIFI]="CONN_WIFI";kx[kx.CONN_NONE]="CONN_NONE";kx[kx.CONN_UNKNOWN]="CONN_UNKNOWN";kx[kx.CONN_DEFAULT]="CONN_DEFAULT"; var lx={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113, DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};lx[lx.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; lx[lx.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";lx[lx.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";lx[lx.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";lx[lx.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";lx[lx.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";lx[lx.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; lx[lx.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";lx[lx.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";lx[lx.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";lx[lx.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";lx[lx.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";lx[lx.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";lx[lx.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";lx[lx.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; lx[lx.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";lx[lx.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";lx[lx.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";lx[lx.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";lx[lx.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";lx[lx.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";lx[lx.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";lx[lx.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; lx[lx.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";lx[lx.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";lx[lx.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";lx[lx.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var mx={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0}; mx[mx.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";mx[mx.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";mx[mx.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";mx[mx.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";mx[mx.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";mx[mx.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";mx[mx.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";mx[mx.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var nx={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};nx[nx.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";nx[nx.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";nx[nx.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";nx[nx.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var ox={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; ox[ox.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";ox[ox.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var px={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};px[px.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";px[px.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";px[px.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; px[px.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";px[px.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";px[px.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var qx={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};qx[qx.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";qx[qx.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";qx[qx.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";qx[qx.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var rx={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};rx[rx.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";rx[rx.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";rx[rx.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var sx={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};sx[sx.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; sx[sx.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";sx[sx.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var mra="actionVisualElement spinnerInfo resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo prefetchInfo accelerationSession webInfo tvInfo kabukiInfo mwebInfo musicInfo".split(" ");var bx=g.C.ytLoggingLatencyUsageStats_||{};g.Ja("ytLoggingLatencyUsageStats_",bx,void 0);$w.prototype.tick=function(a,b,c,d){cx(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Q("web_csi_via_jspb")?(d=new Fja,g.D(d,1,a),g.D(d,2,b),a=new Mq,ye(a,5,qv,d),pv(a,c)):g.xs("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; $w.prototype.info=function(a,b,c){var d=Object.keys(a).join("");cx(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.xs("latencyActionInfo",a,{cttAuthInfo:c}))}; $w.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{JF:b,Gr:c}}; cy.prototype.isFocused=function(a){return a>=this.B&&aa.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1}; g.h.update=function(a,b,c){this.index.append(a);Nra(this.index,c);this.index.u=b}; g.h.df=function(){return this.Lt()?!0:gz.prototype.df.call(this)}; g.h.An=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.h.Zs=function(a){if(!this.Tk)return by.prototype.Zs.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Qg+1);else{b=pc(this.segments,function(d){return a=d.endTime?1:0}); if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.il(b)}; g.h.il=function(a){if(!this.Tk)return by.prototype.il.call(this,a);if(!this.segments.length)return null;var b=Ez(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Qg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new ay(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.v(Gz,zz);g.h=Gz.prototype;g.h.jx=function(){return!0}; g.h.df=function(){return!0}; g.h.zn=function(a){return!oz(a)}; g.h.zo=function(){}; g.h.Bm=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?zz.prototype.Bm.call(this,a,b):(a=new mz(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.mj,void 0,this.mj*this.info.Nb),new vz([a],""))}; g.h.An=function(a,b){var c=void 0===c?!1:c;if(Fz(this.index,a))return zz.prototype.An.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.mj*this.info.Nb;b=!b;c=new mz(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.index.u&&0a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1}; g.h.nF=function(){return 0}; g.h.mH=function(){return!1};g.h=Iz.prototype;g.h.getOffset=function(a){return this.offsets[a]}; g.h.getStartTime=function(a){return this.j[a]/this.B}; g.h.getStartTimeInPeriod=function(){return 0}; g.h.getIngestionTime=function(){return NaN}; g.h.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1}; g.h.getDurationTicks=function(a){return a+1=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c}; g.h.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.j;this.j=new Float64Array(a+1);for(a=0;athis.info.u||4===this.info.type)return!0;var b=Lz(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.zb)return 1836019558===b||1936286840=== b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=Lz(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.zb)return 524531317===c||440786851===c}return!0};g.v(Oz,gz);g.h=Oz.prototype;g.h.zo=function(a){var b=new mz(1,this,this.initRange,"initInfo"),c=new mz(2,this,this.indexRange,"indexInfo");b=[b,c];0=this.index.getOffset(c+1);)c++;return Pz(this,c,b,a.u).j}; g.h.zn=function(a){oz(a);return this.df()?!0:a.range.end+1this.info.contentLength&&(b=new iz(b.start,this.info.contentLength-1)),a=[new mz(4,a.j,b,"getNextRequestInfoByLength")],new vz(a);4===a.type&&(a=this.pu(a),a=a[a.length-1]);var c=0,d=a.range.start+a.zb+a.u;3===a.type&&(oz(a),c=a.Ma,d===a.range.end+1&&(c+=1));return Pz(this,c,d,b)}; g.h.tv=function(){return null}; g.h.Bm=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return Pz(this,a,this.index.getOffset(a),0)}; g.h.Pj=function(){return!0}; g.h.Ht=function(){return!0}; g.h.jx=function(){return!1}; g.h.nF=function(){return this.indexRange.length+this.initRange.length}; g.h.mH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};Qz.prototype.isMultiChannelAudio=function(){return 2this.oA()?(this.hc.appendWindowEnd=b,this.hc.appendWindowStart=a):(this.hc.appendWindowStart=a,this.hc.appendWindowEnd=b))}; g.h.tF=function(){return this.timestampOffset}; g.h.iC=function(a){sR?this.timestampOffset=a:this.supports(1)&&(this.hc.timestampOffset=a)}; g.h.pd=function(){return sR?this.timestampOffset:this.supports(1)?this.hc.timestampOffset:0}; g.h.yf=function(a){if(void 0===a?0:a)return this.Iz||this.kh()||(this.nL=this.yf(!1),this.Iz=!0),this.nL;try{return this.hc?this.hc.buffered:this.We?this.We.webkitSourceBuffered(this.id):kA([0],[Infinity])}catch(b){return kA([],[])}}; g.h.kh=function(){var a;return(null==(a=this.hc)?void 0:a.updating)||!1}; g.h.qo=function(){return this.ZA}; g.h.sA=function(){return this.rN}; g.h.HI=function(a,b){this.containerType!==a&&(this.supports(4),tA()&&this.hc.changeType(b));this.containerType=a}; g.h.tA=function(){return this.Te}; g.h.isView=function(){return!1}; g.h.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.hc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.hc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.hc)||!d.remove);case 3:var e,f;return!!((null==(e=this.hc)?0:e.addEventListener)&&(null==(f=this.hc)?0:f.removeEventListener));case 4:return!(!this.hc||!this.hc.changeType);default:return!1}}; g.h.Mz=function(){return!this.kh()}; g.h.isLocked=function(){return!1}; g.h.Mb=function(a){a.to=this.pd();a.up=this.kh();var b,c=(null==(b=this.hc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.hc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=lA(this.yf())}catch(e){}return a}; g.h.qa=function(){this.supports(3)&&(this.hc.removeEventListener("updateend",this.Lc),this.hc.removeEventListener("error",this.Lc));g.cv.prototype.qa.call(this)}; g.h.xC=function(a,b,c){if(!this.supports(2)||this.kh())return!1;var d=this.yf(),e=mA(d,a);if(0>e)return!1;try{if(b&&e+1jTa){g0=jTa;break a}}var kTa=h0.match("("+g.Xf(hTa).join("|")+")");g0=kTa?hTa[kTa[0]]:0}else g0=void 0}var oC=g0,nC=0<=oC;var Oua={RED:"red",wga:"white"};var Mua={s0:"adunit",r5:"detailpage",H5:"editpage",K5:"embedded",P5:"embedded_unbranded",w8:"leanback",gca:"previewpage",jca:"profilepage",Zea:"unplugged",Xba:"playlistoverview",Uda:"sponsorshipsoffer",Eda:"shortspage"};eua.prototype.kb=function(a){return"true"===this.flags[a]};bB.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;$r?a=a||lTa[b]:2.2===oC?a=a||mTa[b]:Tr()&&(a=a||nTa[b]);return!!a}; bB.prototype.isTypeSupported=function(a){this.Qa();return this.K?window.cast.receiver.platform.canDisplayType(a):fA(a)}; bB.prototype.Qa=function(){}; var mTa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},nTa={"application/x-mpegURL":"maybe"},lTa={"application/x-mpegURL":"maybe"};var kua=Promise.resolve(),nua=window.queueMicrotask?window.queueMicrotask.bind(window):lua;uB.prototype.enqueue=function(a,b){this.queue.push({url:a,options:b});oua(this)}; uB.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Ar(a.url,a.options)}};g.v(vB,g.cv);vB.prototype.add=function(a,b){!this.items[a]&&(b.hw||b.Oz||b.Ny)&&(this.items[a]=kg(b),this.ea("vast_info_card_add",a))}; vB.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; vB.prototype.get=function(a){return this.items[a]||null}; vB.prototype.isEmpty=function(){return g.bg(this.items)};var wC={P8:1,Q8:2,S8:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var pua=!1,xB,yB,zB,AB,BB;CB.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;dthis.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d=this.j&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.j;this.C=!0}; RB.prototype.Cg=function(){return this.D?(SB(this,this.B-this.D)+SB(this,this.B)+SB(this,this.B+this.D))/3:SB(this,this.B)};g.v(Hua,g.G);var Jua=/^([0-9\.]+):([0-9\.]+)$/;var Nua="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Tua={t1:"cbrand",u1:"cbr",v1:"cbrver",r7:"c",u7:"cver",t7:"ctheme",s7:"cplayer",W$:"cmodel",Kaa:"cnetwork",hba:"cos",jba:"cosver",Pba:"cplatform"};g.v(DC,g.G);g.h=DC.prototype;g.h.S=function(a){return this.experiments.kb(a)}; g.h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.GC(this);d&&"www.youtube.com"===c?d="https://web.archive.org/web/20220328145930/https://youtu.be/"+a:g.sC(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,$r&&(a=Jja())&&(b.ebc=a));return g.cj(d,b)}; g.h.getVideoEmbedCode=function(a,b,c){a="https://"+g.GC(this)+"/embed/"+a;c&&(a=g.cj(a,{list:c}));c=b.width;b=b.height;a=g.Ih(a);return''}; g.h.supportsGaplessAudio=function(){return g.gA&&!$r&&74<=Dma()||g.yx&&g.Cc(68)?!0:!1}; g.h.getPlayerType=function(){return this.deviceParams.cplayer}; var Xua=["www.youtube-nocookie.com","youtube.googleapis.com"];g.h=aD.prototype;g.h.zf=function(){return this.j}; g.h.vv=function(){return null}; g.h.AJ=function(){var a=this.vv();return a?(a=g.ir(a.j),Number(a.expire)):NaN}; g.h.LH=function(){}; g.h.Yb=function(){return this.j.Yb()}; g.h.getHeight=function(){return this.j.video.height};Yua.prototype.ye=function(){ava(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ec){if(e.Ec.getIsDefault()){c=e.Ec.getId();break a}c||(c=e.Ec.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Ec||e.Ec.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.r(e),f=e.next();!f.done;f= e.next()){var k=a,l=k.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Ec){p=f.Ec;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=cD(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+($ua(f,d)+'",URI="'+(q+'"'));l.call(k,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=oTa,d=(k=d.Ec)?'#EXT-X-MEDIA:URI="'+cD(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+k.getId()+'",NAME="'+k.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0f.getHeight())&&c.push(f)}return c}; ID.prototype.J=function(a,b,c,d){return new g.HD(a,b,c,d)};g.v(JD,g.HD);g.h=JD.prototype;g.h.iD=function(){return this.u.getNumberOfSegments()}; g.h.gz=function(a){var b=this.rows*this.columns*this.D,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; g.h.Jp=function(){return this.u.getLastSegmentNumber()}; g.h.jD=function(){return this.u.getFirstSegmentNumber()}; g.h.BJ=function(a){this.u=a};g.v(KD,ID);KD.prototype.u=function(a,b){return ID.prototype.u.call(this,"$N|"+a,b)}; KD.prototype.J=function(a,b,c){return new JD(a,b,c,this.isLive)};g.v(g.MD,g.cv);g.h=g.MD.prototype;g.h.V=function(){return this.B}; g.h.S=function(a){return this.B.S(a)}; g.h.rf=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.h.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Qb)||!a.gb)}; g.h.sO=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.sO,this),this.zL(-1))}; g.h.zL=function(a){if(!this.isLivePlayback||!this.N||"fairplay"!=this.N.flavor){var b=yta(this.j,this.UI);if(0=this.X&&(g.S(Error("durationMs was specified incorrectly with a value of: "+this.X)), this.Eh());this.Sf();this.I.addEventListener("progresssync",this.ma)}; g.h.Gg=function(){sF.prototype.Gg.call(this);this.ke("adabandonedreset",!0)}; g.h.Sf=function(){var a=this.I.V();vx("apbs",void 0,"video_to_ad");g.ix("ad_at","0_0","video_to_ad");sF.prototype.Sf.call(this);this.J=a.S("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.K=this.J+this.X/1E3;g.BC(a)?this.I.Na("onAdMessageChange",{renderer:this.D.j,startTimeSecs:this.J}):tF(this,[new oxa(this.D.j)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Fv(),c=this.D.j.videoAdBreakOffsetMsInt64;b&&g.xs("adNotify",{clientScreenNonce:b, adMediaTimeMs:Math.floor(1E3*this.K),timeToAdBreakSec:Math.ceil(this.K-this.J),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.B)if(this.Z=!0,this.I.V().experiments.kb("html5_externally_manage_ad_notify_layout")){b=this.D.j;if(!DF(b)){g.Mv(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.r(this.B.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;WG(d.j(),e);UV(d.j(),e,f)}}else for(a=g.r(this.B.listeners),b=a.next();!b.done;b= a.next())b=b.value,b.u?b.B?T("Received AdNotify started event before another one exited"):(b.B=b.u,WG(b.j(),b.B)):T("Received AdNotify started event without start requested event");g.V(this.I.yb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Fv(),c=this.D.j.videoAdBreakOffsetMsInt64,b&&g.xs("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.K),timeToAdBreakSec:Math.ceil(this.K-this.J),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Eh())}; g.h.Eh=function(){sF.prototype.Eh.call(this);this.ke("adended",!0)}; g.h.ih=function(a){g.Mv(Error("Player error during adNotify."));sF.prototype.ih.call(this,a);this.ke("aderror",!0)}; g.h.ke=function(a,b){(void 0===b?0:b)||g.Mv(Error("TerminateAd directly called from other class during adNotify."));this.I.removeEventListener("progresssync",this.ma);this.Wk();qxa(this,a);b="adended"===a||"aderror"===a;this.I.V().experiments.kb("html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")&&b?this.ea("adnotifyexitednormalorerror"):this.ea(a)}; g.h.dispose=function(){this.I.removeEventListener("progresssync",this.ma);qxa(this,void 0);sF.prototype.dispose.call(this)}; g.h.Wk=function(){g.BC(this.I.V())?this.I.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.J}):sF.prototype.Wk.call(this)};JF.prototype.sendAdsPing=function(a){this.C.send(a,Axa(this),{})}; JF.prototype.Kd=function(a){var b=this;if(a){var c=Axa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};KF.prototype.get=function(){return this.value}; g.v(LF,KF);LF.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; g.v(MF,KF);MF.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"}; g.v(NF,KF);NF.prototype.getType=function(){return"metadata_type_ad_next_params"}; g.v(OF,KF);OF.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; g.v(PF,KF);PF.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; g.v(QF,KF);QF.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; g.v(RF,KF);RF.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; g.v(SF,KF);SF.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; g.v(TF,KF);TF.prototype.getType=function(){return"metadata_ad_video_is_listed"}; g.v(UF,KF);UF.prototype.getType=function(){return"metadata_type_ad_placement_config"}; g.v(VF,KF);VF.prototype.getType=function(){return"metadata_type_ad_pod_info"}; g.v(WF,KF);WF.prototype.getType=function(){return"metadata_type_ad_video_id"}; g.v(XF,KF);XF.prototype.getType=function(){return"metadata_type_ad_video_url"}; g.v(YF,KF);YF.prototype.getType=function(){return"metadata_type_content_cpn"}; g.v(ZF,KF);ZF.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; g.v($F,KF);$F.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; g.v(aG,KF);aG.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"}; g.v(bG,KF);bG.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; g.v(cG,KF);cG.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; g.v(dG,KF);dG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; g.v(eG,KF);eG.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; g.v(fG,KF);fG.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; g.v(gG,KF);gG.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; g.v(hG,KF);hG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; g.v(iG,KF);iG.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; g.v(jG,KF);jG.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; g.v(kG,KF);kG.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; g.v(lG,KF);lG.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; g.v(mG,KF);mG.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; g.v(nG,KF);nG.prototype.getType=function(){return"metadata_type_sub_layouts"}; g.v(oG,KF);oG.prototype.getType=function(){return"metadata_type_cue_point"}; g.v(pG,KF);pG.prototype.getType=function(){return"metadata_type_video_length_seconds"}; g.v(qG,KF);qG.prototype.getType=function(){return"metadata_type_player_vars"}; g.v(rG,KF);rG.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; g.v(sG,KF);sG.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; g.v(tG,KF);tG.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; g.v(uG,KF);uG.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; g.v(vG,KF);vG.prototype.getType=function(){return"metadata_type_dai"}; g.v(wG,KF);wG.prototype.getType=function(){return"metadata_type_ad_intro"}; g.v(xG,KF);xG.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; g.v(yG,KF);yG.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; g.v(zG,KF);zG.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; g.v(AG,KF);AG.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; g.v(BG,KF);BG.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; g.v(CG,KF);CG.prototype.getType=function(){return"metadata_type_remote_slots_data"}; g.v(DG,KF);DG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; g.v(EG,KF);EG.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; g.v(FG,KF);FG.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; g.v(GG,KF);GG.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; g.v(HG,KF);HG.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"}; g.v(IG,KF);IG.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; g.v(JG,KF);JG.prototype.getType=function(){return"metadata_type_survey_overlay"}; g.v(KG,KF);KG.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};Hxa.prototype.Kd=function(a){this.j.Kd(a)};g.v(LG,g.cv);LG.prototype.getProgressState=function(){return this.B}; LG.prototype.start=function(){this.C=Date.now();Jxa(this,{current:this.j/1E3,duration:this.u/1E3});this.Rb.start()}; LG.prototype.stop=function(){this.Rb.stop()};g.v(MG,FE);g.v(NG,g.cv);NG.prototype.start=function(){this.u||(this.u=!0,this.timer.start(),this.B=Date.now())}; NG.prototype.stop=function(){this.u&&(this.u=!1,this.timer.stop())}; NG.prototype.Pb=function(){var a=Date.now(),b=a-this.B;this.B=a;this.j+=b;this.j>=this.durationMs?(this.j=this.durationMs,this.timer.stop(),this.C(this.j),this.D()):this.C(this.j)};g.v(QG,sF);g.h=QG.prototype;g.h.qs=function(){this.Sf()}; g.h.Sf=function(){var a=this,b=this.D.j;if(g.BC(this.I.V()))Lxa(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(tF(this,[new MG(b)]),this.D.j.controlWithFixEnabled){var c=1E3*this.D.u;this.K=new NG(c,function(d){var e={current:d/1E3,duration:c/1E3};uF(a,d/1E3);a.I.Na("onAdPlaybackProgress",e)},function(){var d={current:c/1E3, duration:c/1E3};Kxa(a);a.I.Na("onAdPlaybackProgress",d)}); g.H(this,this.K);this.K.start()}OG();sF.prototype.Sf.call(this)}; g.h.getDuration=function(){return this.D.u}; g.h.Eo=function(){sF.prototype.Eo.call(this);this.B&&this.B.stop()}; g.h.Fo=function(){sF.prototype.Fo.call(this);this.B&&this.B.start()}; g.h.Gg=function(){sF.prototype.Gg.call(this);this.ke("adabandoned")}; g.h.yq=function(){sF.prototype.yq.call(this);this.ke("adended")}; g.h.ih=function(a){this.I.V().experiments.kb("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(sF.prototype.ih.call(this,a),this.ke("aderror"))}; g.h.ke=function(a){this.Wk();this.ea(a)}; g.h.Bf=function(a){switch(a){case "skip-button":this.yq();break;case "survey-submit":this.ke("adended")}}; g.h.Wk=function(){g.BC(this.I.V())?(this.B&&this.B.stop(),this.I.Na("onAdInfoChange",null)):sF.prototype.Wk.call(this)};g.v(RG,FE);g.v(SG,sF);SG.prototype.qs=function(){this.Sf()}; SG.prototype.Sf=function(){OG();tF(this,[new RG(this.B.j,this.macros)]);sF.prototype.Sf.call(this)}; SG.prototype.Gg=function(){sF.prototype.Gg.call(this);this.ke("adabandoned")}; SG.prototype.ih=function(a){sF.prototype.ih.call(this,a);this.ke("aderror")};g.v(TG,sF);g.h=TG.prototype;g.h.Lw=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:Pwa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}}; g.h.qs=function(){var a=this.B.j.legacyInfoCardVastExtension,b=this.B.Fg();a&&b&&this.I.V().Z.add(b,{hw:a});try{var c=this.B.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{xea(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Tg("//web.archive.org/web/20220328145930/https://tpc.googlesyndication.com/sodar/%{path}");g.Mv(new g.Cs("Load Sodar Error.",d instanceof Rg,d.constructor===Rg,{Message:e.message,"Escaped injector basename":g.Ih(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Rg)throw e;}}catch(e){g.S(e)}DE(this.I,!1);a= Vwa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.BC(b)||g.MC(b)?3:1;b=this.I.getVideoData(1);b.vg&&(a.ctrl=b.vg);b.Mg&&(a.ytr=b.Mg);b.lm&&(a.ytrcc=b.lm);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.wi&&(a.vss_credentials_token_type=b.wi),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.X?this.J.start():(this.I.cueVideoByPlayerVars(a,2),this.J.start(),this.I.playVideo(2))}; g.h.Eo=function(){sF.prototype.Eo.call(this);this.ea("adpause",2)}; g.h.Fo=function(){sF.prototype.Fo.call(this);this.ea("adplay",1)}; g.h.Sf=function(){sF.prototype.Sf.call(this);this.J.stop();this.Z.T(this.I,g.Ew("bltplayback"),this.MR);var a=new g.Cw(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Qd([a],2);a=$G(this);this.D.xa=a;if(this.I.isMuted()){a=this.j;var b=this.I.isMuted();dF(a)||fF(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.K){a=null!==this.D.j.getVideoData(1)?this.D.j.getVideoData(1).clientPlaybackNonce:"";b=Nxa(this);for(var c=this.B,d=Mxa(this),e=g.r(this.K.listeners), f=e.next();!f.done;f=e.next()){f=f.value;var k=b,l=c,m=d,n=[],p=l.Fg(),q=l.getVideoUrl();p&&n.push(new WF(p));q&&n.push(new XF(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new ZF(q)),(q=q.elementId)&&n.push(new hG(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new $F(p));l.j.adNextParams&&n.push(new NF(l.j.adNextParams||""));(p=l.va)&&n.push(new OF(p));(p=kw(f.N.get(),2))?(n.push(new SF({channelId:p.sj, channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new TF(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new VF(l.B));n.push(new pG(l.u));n.push(new YF(a));n.push(new lG({current:this}));p=l.Ha;null!=p.kind&&n.push(new UF(p));(p=l.Da)&&n.push(new CG(p));void 0!==m&&n.push(new DG(m));f.j?T(f.j.layoutId===k?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Oxa(f,k,n,!0,l.j.adLayoutLoggingData)}}this.I.Na("onAdStart", $G(this));a=g.r(this.B.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.h.MR=function(a){"bltcompletion"==a.getId()&&(this.I.jf("bltplayback",2),gF(this.j,this.getDuration()),ZG(this,"adended"))}; g.h.Eh=function(){sF.prototype.Eh.call(this);this.ke("adended");for(var a=g.r(this.B.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; g.h.Gg=function(){sF.prototype.Gg.call(this);this.ke("adabandoned")}; g.h.aC=function(){var a=this.j;cF(a)||kF(a,"clickthrough");this.C||(a=this.j,cF(a)||kF(a,"unmuted_clickthrough"))}; g.h.Nx=function(){this.yq()}; g.h.yq=function(){sF.prototype.yq.call(this);this.ke("adended")}; g.h.ih=function(a){sF.prototype.ih.call(this,a);this.ke("aderror")}; g.h.ke=function(a){this.J.stop();DE(this.I,!0);"adabandoned"!=a&&this.I.Na("onAdComplete");ZG(this,a);this.I.Na("onAdEnd",$G(this));this.ea(a)}; g.h.Wk=function(){var a=this.I.V();g.BC(a)&&(g.MC(a)||a.S("enable_topsoil_wta_for_halftime")||a.S("enable_topsoil_wta_for_halftime_live_infra")||g.BC(a))?this.I.Na("onAdInfoChange",null):sF.prototype.Wk.call(this)}; g.h.DP=function(){this.EV&&this.I.playVideo()}; g.h.EV=function(){return 2==this.I.getPlayerState(2)}; g.h.WL=function(a,b){if(!Number.isFinite(a))return g.S(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.S(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=Vwa(this.B);d=this.I.Ks(d,2,c,a,b);a+c>b&&this.I.Mu(d,b-a);return d}; g.h.dispose=function(){Pwa(this.I)&&!this.X&&this.I.stopVideo(2);ZG(this,"adabandoned");sF.prototype.dispose.call(this)};aH.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={ow:null,xN:-Infinity},b=this.j[b]=c);c=a.startSecs+a.Hu/1E3;if(!(cyE&&(a=Math.max(.1,a)),this.lz(a))}; g.h.stopVideo=function(){!this.B&&this.Af()&&(tTa&&$r&&0b.j.getCurrentTime(2,!1)&&!b.j.V().S("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad; if(c.ix()){var d=b.B.I.V().S("html5_dai_enable_active_view_creating_completed_adblock");iia(c.J,d)}b.ad.D.seek=!0}0>qF(a,4)&&!(0>qF(a,2))&&(b=this.j,c=b.j,cF(c)||oF(c,"resume"),b.C||(b=b.j,cF(b)||oF(b,"unmuted_resume")));!this.I.V().experiments.kb("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.rF(a,512)&&!g.sH(a.state)&&this.D.Du()}}}; g.h.onVideoDataChange=function(){return this.daiEnabled?fya(this):!1}; g.h.resume=function(){this.j&&this.j.DP()}; g.h.Un=function(){this.j&&this.j.ke("adended")}; g.h.dl=function(){this.Un()}; g.h.aj=function(a){this.cg.aj(a)}; g.h.NR=function(a){this.cg.j.Na("onAdUxUpdate",a)}; g.h.onAdUxClicked=function(a){this.j.Bf(a)}; g.h.iM=function(){return 0}; g.h.jM=function(){return 1}; g.h.zI=function(a){this.daiEnabled&&this.u.J&&this.u.j.start<=a&&a=this.C?this.B.j:this.B.j.slice(this.C)).some(function(a){return a.Gt()})}; g.h.Qj=function(){return this.J instanceof UE||this.J instanceof AF}; g.h.mx=function(){return this.J instanceof NE||this.J instanceof yF}; g.h.ZO=function(){this.daiEnabled?BE(this.I)&&fya(this):Pya(this)}; g.h.xv=function(a){var b=Oya(a);this.J&&b&&this.N!==b&&(b?Iza(this.cg):Kza(this.cg),this.N=b);this.J=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a})); uH.prototype.xv.call(this,a)}; g.h.jG=function(a){var b=this;uH.prototype.jG.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void yH(b)})}; g.h.dl=function(){this.C=this.B.j.length;this.j&&this.j.ke("adended");yH(this)}; g.h.Un=function(){this.onAdEnd()}; g.h.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.aj(0),a?yH(this,b):Pya(this))}; g.h.eO=function(){if(1==this.B.u)this.J instanceof zF&&g.Mv(Error("AdNotify error with FailureMode.TERMINATING")),yH(this);else this.onAdEnd()}; g.h.yA=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0qF(a,16)&&(this.K.forEach(this.KG,this),this.K.clear())}; g.h.cZ=function(){if(this.u)this.u.onVideoDataChange()}; g.h.fZ=function(){if(BE(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&uF(b.j,a)}}; g.h.kW=function(){this.Ra=!0;if(this.u){var a=this.u;a.j&&a.j.Gg()}}; g.h.wW=function(a){if(this.u)this.u.onAdUxClicked(a)}; g.h.gZ=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.j,c=a.I.isMuted();dF(b)||fF(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),fF(a.j,b?"unmuted_mute":"unmuted_unmute"))}}; g.h.jX=function(a){if(this.u){var b=this.u.j,c=b.j;cF(c)||kF(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.j,cF(b)||kF(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}}; g.h.Vf=function(a,b){this.j.Vf(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Vp.delete(b),this.B.delete(b)}; g.h.E_=function(){for(var a=[],b=g.r(this.Vp),c=b.next();!c.done;c=b.next())c=c.value,Hw(c)||a.push(c);b=this.j.app;1!==b.getPresentingPlayerType()||PU(b,"cuerangemarkersupdated",a)}; g.h.aj=function(a){this.j.aj(a);switch(a){case 1:this.MA=1;break;case 0:this.MA=0}}; g.h.ZH=function(){var a=this.j.getVideoData(2);return a?a.isListed&&!this.N:!1}; g.h.Un=function(){this.u&&this.u.Dq()&&this.u.Un()}; g.h.dl=function(){this.u&&this.u.Dq()&&this.u.dl()}; g.h.gA=function(){}; g.h.Qz=function(){}; g.h.Pb=function(a){if(this.u){var b=this.u;b.j&&uF(b.j,a)}}; g.h.Qj=function(){return BE(this.j)&&!!this.u&&this.u.Qj()}; g.h.executeCommand=function(a,b,c){this.gb.executeCommand(a,b,Fza(this,void 0===c?null:c))}; g.h.isDaiEnabled=function(){return!1}; g.h.gM=function(){return this.va}; g.h.hM=function(){return this.Da};g.v(aI,g.G);aI.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.j.appendChild(a.j)}; g.v(bI,aI);g.v(Nza,g.G);var Pza=1;g.v(g.dI,g.G);g.h=g.dI.prototype; g.h.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Fa;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.RC&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.Yh(a.G);if(c){if(c=eI(this,e,"class",c))fI(this,e,"class",c),this.ub[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.ub[f.value]=e;fI(this,e,"class",d.join(" "))}d=a.oa;c=a.U;if(d)b=eI(this,e,"child",d),void 0!==b&&e.appendChild(g.Zh(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f= f.value)if("string"===typeof f)f=eI(this,e,"child",f),null!=f&&e.appendChild(g.Zh(f));else if(f.element)e.appendChild(f.element);else{var k=f;f=this.createElement(k,b);e.appendChild(f);k.Ib&&(k=cI(),f.id=k,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+k),g.ai(e,f,d++))}if(a=a.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],fI(this,b,c,"string"===typeof f? eI(this,b,c,f):f);return e}; g.h.Ca=function(a){return this.ub[a]}; g.h.Ba=function(a,b){"number"===typeof b?g.ai(a,this.element,b):a.appendChild(this.element)}; g.h.detach=function(){g.bi(this.element)}; g.h.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.La(c,a[c])}; g.h.La=function(a,b){(a=this.Od["{{"+a+"}}"])&&fI(this,a[0],a[1],b)}; g.h.qa=function(){this.ub={};this.Od={};this.detach();g.G.prototype.qa.call(this)};g.v(g.W,g.dI);g.h=g.W.prototype;g.h.Ad=function(a,b){this.La(b||"content",a)}; g.h.show=function(){this.tb||(g.Dm(this.element,"display",""),this.tb=!0)}; g.h.hide=function(){this.tb&&(g.Dm(this.element,"display","none"),this.tb=!1)}; g.h.jc=function(a){this.ra=a}; g.h.Oa=function(a,b,c){return this.T(this.element,a,b,c)}; g.h.T=function(a,b,c,d){c=(0,g.Sa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; g.h.vc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})}; g.h.focus=function(){var a=this.element;fi(a);a.focus()}; g.h.qa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.dI.prototype.qa.call(this)};g.v(g.hI,g.W);g.hI.prototype.subscribe=function(a,b,c){return this.Va.subscribe(a,b,c)}; g.hI.prototype.unsubscribe=function(a,b,c){return this.Va.unsubscribe(a,b,c)}; g.hI.prototype.Mf=function(a){return this.Va.Mf(a)}; g.hI.prototype.ea=function(a){return this.Va.ea.apply(this.Va,[a].concat(g.u(g.Da.apply(1,arguments))))};var vTa=new WeakSet;g.v(iI,g.hI);g.h=iI.prototype;g.h.bind=function(a){if(!this.Ra&&a.renderer){var b=Object.assign({},Mza(this.api,this.eb),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()}; g.h.init=function(a,b,c){this.Ra=a;this.element.setAttribute("id",this.Ra);this.gb&&g.M(this.element,this.gb);this.X=b&&b.adRendererCommands;this.macros=c;this.K=b.trackingParams||null;null!=this.K&&this.Yg(this.element,this.K)}; g.h.clear=function(){}; g.h.hide=function(){g.hI.prototype.hide.call(this);null!=this.K&&this.Za(this.element,!1)}; g.h.show=function(){g.hI.prototype.show.call(this);if(!this.ib){this.ib=!0;var a=this.X&&this.X.impressionCommand;a&&this.IH(a,null)}null!=this.K&&this.Za(this.element,!0)}; g.h.onClick=function(a){if(this.K&&!vTa.has(a)){var b=this.element;this.api.Io(b)&&this.tb&&this.api.wb(b,this.j);vTa.add(a)}if(a=this.X&&this.X.clickCommand)a=this.hP(a),this.IH(a,this.lM())}; g.h.hP=function(a){return a}; g.h.lM=function(){return null}; g.h.SR=function(a){var b=this.ma;b.K=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.J=Oza(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.N=Infinity,b.X=Infinity):(b.N=c.clientX,b.X=c.clientY);for(c=b.B.length=0;cMath.pow(5,2))b.C=!0}; g.h.QR=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&Oza(b,c)&&(b.Z=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}}; g.h.IH=function(a){JI(this.jb,a,this.macros)}; g.h.Yg=function(a,b){this.api.Yg(a,this);this.api.jk(a,b)}; g.h.Za=function(a,b){this.api.Io(a)&&this.api.Za(a,b,this.j)}; g.h.qa=function(){this.clear(null);this.vc(this.Xa);for(var a=g.r(this.va),b=a.next();!b.done;b=a.next())this.vc(b.value);g.hI.prototype.qa.call(this)};g.v(xI,iI); xI.prototype.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);this.u=b;if(null==b.text&&null==b.icon)g.Mv(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.M(this.element,a);null!=b.text&&(a=g.Jw(b.text),g.kb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.hI({G:"span",L:"ytp-ad-button-text",oa:a}),g.H(this,this.C),this.C.Ba(this.element)));null!=b.icon&&(b=wI(b.icon), null!=b&&(this.B=new g.hI({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.H(this,this.B)),this.D?g.ai(this.element,this.B.element,0):this.B.Ba(this.element))}}; xI.prototype.clear=function(){this.hide()}; xI.prototype.onClick=function(a){iI.prototype.onClick.call(this,a);a=g.r(iAa(this));for(var b=a.next();!b.done;b=a.next())JI(this.jb,b.value,this.macros);this.api.onAdUxClicked(this.componentType,this.layoutId)};g.v(yI,g.G);yI.prototype.qa=function(){this.u&&g.ju(this.u);this.j.clear();zI=null;g.G.prototype.qa.call(this)}; yI.prototype.register=function(a,b){b&&this.j.set(a,b)}; var zI=null;g.v(BI,iI); BI.prototype.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.S(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new xI(this.api,this.eb,this.layoutId,this.j,this.jb),g.H(this,this.button),this.button.init(EE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Jw(a)),this.button.Ba(this.element),this.J&&!g.up(this.button.element,"ytp-ad-clickable")&&g.M(this.button.element,"ytp-ad-clickable"), a&&(this.B=new g.hI({G:"div",L:"ytp-ad-hover-text-container"}),this.D&&(b=new g.hI({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ba(this.B.element),g.H(this,b)),g.H(this,this.B),this.B.Ba(this.element),b=AI(a),g.ai(this.B.element,b,0)),this.show())}; BI.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();iI.prototype.hide.call(this)}; BI.prototype.show=function(){this.button&&this.button.show();iI.prototype.show.call(this)};g.v(DI,iI);DI.prototype.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&CI(a)||"";g.kb(b)?(this.api.V().S("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&g.Mv(Error("Found AdImage without valid image URL")):(this.u?g.Dm(this.element,"backgroundImage","url("+b+")"):Th(this.element,{src:b}),Th(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; DI.prototype.clear=function(){this.hide()};g.v(EI,iI);g.h=EI.prototype;g.h.hide=function(){iI.prototype.hide.call(this);this.C&&this.C.focus()}; g.h.show=function(){this.C=document.activeElement;iI.prototype.show.call(this);this.D.focus()}; g.h.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.S(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.S(Error("ConfirmDialogRenderer.cancelLabel was not set.")):mAa(this,b):g.S(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.h.clear=function(){g.bv(this.u);this.hide()}; g.h.IG=function(){this.hide()}; g.h.kD=function(){var a=this.B.cancelEndpoint;a&&JI(this.jb,a,this.macros);this.hide()}; g.h.JG=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&JI(this.jb,a,this.macros);this.hide()};g.v(FI,iI);g.h=FI.prototype; g.h.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.S(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.S(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.M(this.C,a)}a={};b.defaultText? (c=g.Jw(b.defaultText),g.kb(c)||(a.buttonText=c,this.u.setAttribute("aria-label",c))):g.Pm(this.xa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.u.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=wI(b.defaultIcon),this.La("untoggledIconTemplateSpec",c),b.toggledIcon?(this.N=!0,c=wI(b.toggledIcon),this.La("toggledIconTemplateSpec",c)):(g.Pm(this.J,!0),g.Pm(this.D,!1)),g.Pm(this.u,!1)):g.Pm(this.Z,!1);g.bg(a)||this.update(a);b.isToggled&& (g.M(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));GI(this);this.T(this.element,"change",this.CJ);this.show()}}; g.h.onClick=function(a){0a&&g.S(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Pa&&g.M(this.B.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.xa=null==a||0===a?this.u.Kw():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.C.init(EE("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.Kk&&b.thumbnail?this.J.init(EE("ad-image"),b.thumbnail,c):this.N.hide()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.B.hide();this.C.hide();this.J.hide();RI(this);PI.prototype.hide.call(this)}; g.h.show=function(){QI(this);this.B.show();this.C.show();this.J.show();PI.prototype.show.call(this)}; g.h.ir=function(){this.hide()}; g.h.ip=function(){if(null!=this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ha&&a>=this.xa?(this.Z.hide(),this.Ha=!0,this.ea("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.xa-a)/1E3)),a!=this.Ia&&(OI(this.C,{TIME_REMAINING:String(a)}),this.Ia=a)))}};g.v(WI,PI);g.h=WI.prototype; g.h.init=function(a,b,c){PI.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0=this.xa&&(RI(this),g.wp(this.element,"ytp-flyout-cta-inactive"))}}; g.h.ir=function(){this.clear()}; g.h.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.EJ.bind(this))}; g.h.show=function(){this.B&&this.B.show();PI.prototype.show.call(this)}; g.h.hide=function(){this.B&&this.B.hide();PI.prototype.hide.call(this)}; g.h.EJ=function(a){"hidden"==a?this.show():this.hide()};g.v(XI,iI);g.h=XI.prototype;g.h.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);this.u=b;if(this.u.rectangle)for(this.C.init(EE("toggle-button"),this.u.likeButton.toggleButtonRenderer,c),this.B.init(EE("toggle-button"),this.u.dislikeButton.toggleButtonRenderer,c),this.T(this.element,"change",this.FJ),this.D.show(100),this.show(),a=g.r(this.u&&this.u.impressionCommands||[]),b=a.next();!b.done;b=a.next())JI(this.jb,b.value,this.macros)}; g.h.clear=function(){this.hide()}; g.h.hide=function(){this.C.hide();this.B.hide();iI.prototype.hide.call(this)}; g.h.show=function(){this.C.show();this.B.show();iI.prototype.show.call(this)}; g.h.FJ=function(){via(this.element,"ytp-ad-instream-user-sentiment-selected");this.u.postMessageAction&&this.api.Na("onYtShowToast",this.u.postMessageAction);this.D.hide()}; g.h.onClick=function(a){0=this.N&&BAa(this,!0)};g.v(aJ,xI);aJ.prototype.init=function(a,b,c){xI.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.Jw(b.text),a=!g.kb(a));a?null==b.navigationEndpoint?g.Mv(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.Mv(Error("Button style was not a link-style type in renderer,")):this.show():g.Mv(Error("No visit advertiser text was present in the renderer."))};g.v(bJ,iI);bJ.prototype.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);a=b.text;g.kb(jI(a))?g.Mv(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.u&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new NI(this.api,this.eb,this.layoutId,this.j,this.jb),a.init(EE("simple-ad-badge"),b,c),a.Ba(this.element),g.H(this,a)),this.show())}; bJ.prototype.clear=function(){this.hide()};g.v(cJ,FE);g.v(dJ,g.cv);g.h=dJ.prototype;g.h.Kw=function(){return this.durationMs}; g.h.stop=function(){this.j&&this.Lc.vc(this.j)}; g.h.Pb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")}; g.h.getProgressState=function(){return this.u}; g.h.Sc=function(a){g.rF(a,2)&&this.ea("g")};g.v(eJ,g.cv);g.h=eJ.prototype;g.h.Kw=function(){return this.durationMs}; g.h.start=function(){this.u||(this.u=!0,this.timer.start())}; g.h.stop=function(){this.u&&(this.u=!1,this.timer.stop())}; g.h.Pb=function(){this.j+=100;var a=!1;this.j>this.durationMs&&(this.j=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.j/1E3};this.eb&&this.eb.Pb(this.B.current);this.ea("h");a&&this.ea("g")}; g.h.getProgressState=function(){return this.B};g.v(hJ,PI);g.h=hJ.prototype;g.h.init=function(a,b,c){PI.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){dr(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new NI(this.api,this.eb,this.layoutId,this.j,this.jb);this.B.init(EE("ad-text"),a,{});this.B.Ba(this.element);g.H(this,this.B)}this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){RI(this);PI.prototype.hide.call(this)}; g.h.ir=function(){this.hide()}; g.h.ip=function(){if(null!=this.u){var a=this.u.getProgressState();if(null!=a&&null!=a.current&&this.B){a=(this.u instanceof dJ?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.u instanceof eJ?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.fJ(a);OI(this.B,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; g.h.show=function(){QI(this);PI.prototype.show.call(this)};g.v(iJ,NI);iJ.prototype.onClick=function(a){NI.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.v(nJ,g.hI);nJ.prototype.Pb=function(){var a=this.u.getProgressState();this.Hc.style.width=100*mJ(new jJ(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; nJ.prototype.onStateChange=function(){g.sC(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Pb,this),this.Pb()):-1!==this.j&&(this.hide(),this.u.Mf(this.j),this.j=-1))};g.v(oJ,iI); oJ.prototype.init=function(a,b,c,d){iI.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new $I(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,this.J),c.Ba(this.D),c.init(EE("skip-button"),a.skipAdRenderer,this.macros),g.H(this,c)):a.adPreviewRenderer&&(c=new UI(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,!1),c.Ba(this.D),c.init(EE("ad-preview"),a.adPreviewRenderer,this.macros),VI(c),g.H(this,c)));b.brandInteractionRenderer&&(a= b.brandInteractionRenderer.brandInteractionRenderer,c=new XI(this.api,this.eb,this.layoutId,this.j,this.jb),c.Ba(this.Z),c.init(EE("instream-user-sentiment"),a,this.macros),g.H(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new WI(this.api,this.eb,this.layoutId,this.j,this.jb,this.u),g.H(this,c),c.Ba(this.N),c.init(EE("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a= {text:{text:"Ad",isTemplated:!1}}),c=new bJ(this.api,this.eb,this.layoutId,this.j,this.jb,!0),g.H(this,c),c.Ba(this.B),c.init(EE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new hJ(this.api,this.eb,this.layoutId,this.j,this.jb,this.u,d),g.H(this,d),d.Ba(this.B),d.init(EE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&& (d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new MI(this.api,this.eb,this.layoutId,this.j,this.jb,this.element),g.H(this,a),a.Ba(this.B),a.init(EE("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=DAa(this)&&this.C?this.C:this.B))&&(a=new aJ(this.api,this.eb,this.layoutId,this.j,this.jb),g.H(this,a),a.Ba(d),a.init(EE("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!pC(b)&& "3"==b.controlsType&&(b=new nJ(this.api,this.u),b.Ba(this.xa),g.H(this,b));this.api.V().S("enable_updated_html5_player_focus_style")&&g.M(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; oJ.prototype.clear=function(){this.hide()};g.Ja("yt.pubsub.publish",g.Eu,void 0);var vJ=Symbol("injectionDeps");tJ.prototype.toString=function(){return"InjectionToken("+this.name+")"}; LAa.prototype.resolve=function(a){return a instanceof uJ?wJ(this,a.key,[],!0):wJ(this,a,[])};var OJ;var EJ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var y0={},PAa=(y0.WEB_UNPLUGGED="^unplugged/",y0.WEB_UNPLUGGED_ONBOARDING="^unplugged/",y0.WEB_UNPLUGGED_OPS="^unplugged/",y0.WEB_UNPLUGGED_PUBLIC="^unplugged/",y0.WEB_CREATOR="^creator/",y0.WEB_KIDS="^kids/",y0.WEB_EXPERIMENTS="^experiments/",y0.WEB_MUSIC="^music/",y0.WEB_REMIX="^music/",y0.WEB_MUSIC_EMBEDDED_PLAYER="^music/",y0.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",y0);BJ.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?EJ:c;var d={context:g.EH(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.yJ(this.B());var k;(a=null==(f=a.commandMetadata)?void 0:null==(k=f.webCommandMetadata)?void 0:k.apiUrl)&&(b=a);f=RAa(zJ(b),void 0);d={input:f,xr:AJ(f),yl:d,config:Object.assign({},void 0)};d.config.aq?d.config.aq.identity=c:d.config.aq={identity:c};return d}g.S(new g.Cs("Error: Failed to create Request from Command.",a))}; fa.Object.defineProperties(BJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.v(CJ,BJ);CJ.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",xr:AJ("/getDatasyncIdsEndpoint","GET"),yl:{}}}; CJ.prototype.B=function(){return[]}; CJ.prototype.j=function(){}; CJ.prototype.u=function(){};var wTa={},SAa=(wTa.GET_DATASYNC_IDS=xJ(CJ),wTa);var XAa=["consistency","mss","client_location","entities","store"];g.v(GJ,BJ);GJ.prototype.B=function(){return MSa}; GJ.prototype.j=function(a){return a.subscribeEndpoint}; GJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; fa.Object.defineProperties(GJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(HJ,BJ);HJ.prototype.B=function(){return NSa}; HJ.prototype.j=function(a){return a.unsubscribeEndpoint}; HJ.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; fa.Object.defineProperties(HJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(IJ,BJ);IJ.prototype.B=function(){return JSa}; IJ.prototype.j=function(a){return a.feedbackEndpoint}; IJ.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; fa.Object.defineProperties(IJ.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.v(JJ,BJ);JJ.prototype.B=function(){return KSa}; JJ.prototype.j=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; JJ.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.v(KJ,BJ);KJ.prototype.B=function(){return LSa}; KJ.prototype.j=function(a){return a.playlistEditEndpoint}; KJ.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.v(LJ,BJ);LJ.prototype.B=function(){return ISa}; LJ.prototype.j=function(a){return a.webPlayerShareEntityServiceEndpoint}; LJ.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var KAa=new tJ("NETWORK_SLI_TOKEN");MJ.prototype.fetch=function(a,b){var c=this,d,e;return g.B(function(f){c.j&&(d=Ui(g.Wi(5,sj(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=new window.Request(a,b);return g.Q("web_fetch_promise_cleanup_killswitch")?f.return(Promise.resolve(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Mv(k)}))):f.return(fetch(e).then(function(k){return c.handleResponse(k)}).catch(function(k){g.Mv(k)}))})}; MJ.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.failure(),b=b.then(function(c){g.Mv(new g.Cs("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})})); return b}; MJ[vJ]=[new uJ];var ZAa=new tJ("NETWORK_MANAGER_TOKEN");var NJ;QJ.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))}; f.onload=function(){e(d.handleResponse(a,f.status,f.response))}; if(null==c?0:c.Ut)f.onreadystatechange=function(p){c.Ut(f,p)}; var k;f.open(null!=(k=b.method)?k:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){k=g.r(Object.entries(b.headers));for(var l=k.next();!l.done;l=k.next()){var m=g.r(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})}; QJ.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Mv(new g.Cs("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Mv(new g.Cs("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var aBa=[],RJ=!1;SJ.getInstance=function(){var a=g.Ka("ytglobal.storage_");a||(a=new SJ,g.Ja("ytglobal.storage_",a,void 0));return a}; SJ.prototype.estimate=function(){var a,b,c;return g.B(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(dBa()):d.return()})}; g.Ja("ytglobal.storageClass_",SJ,void 0);vs.prototype.Uj=function(a){this.handleError(a)}; vs.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Q("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Q("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":fBa(this,b);break;case "TRANSACTION_ENDED":this.B&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({}, b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.h=gBa.prototype; g.h.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterScript)?d:null,f;d=null!=(f=a.interpreterUrl)?f:null;a.interpreterSafeScript&&(f=a.interpreterSafeScript,e=g.Tg("From proto message. b/166824318"),f=f.privateDoNotAccessOrElseSafeScriptWrappedValue||"",Sg(e),Sg(e),e=(e=Og())?e.createScript(f):f,e=(new Vg(e,Ug)).toString());a.interpreterSafeUrl&&(d=a.interpreterSafeUrl,d=sba(g.Tg("From proto message. b/166824318"),d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString()); iBa(this,e,d,a.program,b,c)}else g.Mv(Error("Cannot initialize botguard without program"))}; g.h.isInitialized=function(){return!!this.j}; g.h.getState=function(){return this.state}; g.h.invoke=function(a){a=void 0===a?{}:a;if(this.j){var b=this.j;a={mw:a};if(b.j)throw Error("Already disposed");b=b.B([a.mw,a.XZ])}else b=null;return b}; g.h.dispose=function(){jBa(this,null);this.state=8};var eK,gK;g.TJ=new gBa;eK=0;gK=[];var nBa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var xBa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},yBa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},zBa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},wBa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},uBa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF", 2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},vBa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};nK.prototype.getState=function(){return this.store.getState()}; nK.prototype.dispatch=function(a){return this.store.dispatch(a)}; nK.prototype.subscribe=function(a){return this.store.subscribe(a)}; nK.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)}; nK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var MBa={captionTrack:225,channelHandle:275,commerceCartListEntity:236,downloadQualityPickerEntity:202,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,mainPlaylistEntity:306,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersVisibilityOverrideEntity:312,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242, pinnedProductEntity:273,playbackData:119,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},LBa={},xTa=g.r(Object.entries(MBa)),z0=xTa.next();!z0.done;z0=xTa.next()){var yTa=g.r(z0.value),zTa=yTa.next().value,ATa=yTa.next().value,BTa=zTa,CTa=ATa;CTa&&(LBa[CTa]=BTa)};var A0;A0={};g.DTa=(A0.INVALID_ENCODER_VERSION="Invalid encoder version",A0.KEY_CREATION_FAILED="Failed to create encoder key",A0.UNKNOWN_DECODE_ERROR="Failed to decode PES data",A0.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",A0.WRONG_DATA_TYPE="Encoder cannot process the data type",A0);var EBa; EBa=function(a){for(var b=Object.keys(a),c={},d=0;d=c.Cb.length)c=!1;else{d=g.r(c.Cb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof dD)){c=!1;break a}var f=a.Ec.getId();e.B&&(Zua(e.B,f),e.u=null)}c.Jk=a;c=!0}c&&kU(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.ya("hlsaudio",{id:a.id}))}}}}; g.h.zU=function(){return this.getAvailableAudioTracks()}; g.h.getAvailableAudioTracks=function(){return g.ZK(this.app,this.playerType).getAvailableAudioTracks()}; g.h.getMaxPlaybackQuality=function(){var a=g.ZK(this.app,this.playerType);return a&&a.getVideoData().u?Hx(a.Oe?nJa(a.Kg,a.Oe,a.ot()):LD):"unknown"}; g.h.getUserPlaybackQualityPreference=function(){var a=g.ZK(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.h.getSubtitlesUserSettings=function(){var a=g.rL(this.app.sb());return a?a.MU():null}; g.h.resetSubtitlesUserSettings=function(){g.rL(this.app.sb()).IZ()}; g.h.setMinimized=function(a){this.app.setMinimized(a)}; g.h.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.h.setGlobalCrop=function(a){this.app.bb().setGlobalCrop(a)}; g.h.getVisibilityState=function(){var a=this.Se();return this.app.getVisibilityState(this.Cf(),this.isFullscreen()||pC(this.app.V()),a,this.isInline(),this.app.It(),this.app.Et())}; g.h.isMutedByMutedAutoplay=function(){return this.app.yx}; g.h.isInline=function(){return this.app.isInline()}; g.h.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.Dh(a,b))}; g.h.pd=function(){var a=g.ZK(this.app,void 0);return a?a.pd():0}; g.h.Se=function(){return this.app.Se()}; g.h.Cf=function(){var a=g.ZK(this.app,this.playerType);return!!a&&a.Cf()}; g.h.isFullscreen=function(){return this.app.isFullscreen()}; g.h.setSafetyMode=function(a){this.app.V().enableSafetyMode=a}; g.h.canPlayType=function(a){return this.app.canPlayType(a)}; g.h.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.S("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.eL(b).videoId||(a.index=b.index)):VU(this.app,{list:a.list,index:a.index,playlist_length:d.length});gL(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.h.updateVideoData=function(a,b){var c=g.ZK(this.app,this.playerType||1);c&&g.PD(c.getVideoData(),a,b)}; g.h.updateEnvironmentData=function(a){yC(this.app.V(),a,!1)}; g.h.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.h.setCardsVisible=function(a,b,c){var d=g.AL(this.app.sb());d&&d.Ih()&&d.setCardsVisible(a,b,c)}; g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)}; g.h.setInline=function(a){this.app.setInline(a)}; g.h.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.h.getVideoAspectRatio=function(){return this.app.bb().getVideoAspectRatio()}; g.h.getPreferredQuality=function(){var a=g.ZK(this.app);return a?a.getPreferredQuality():"unknown"}; g.h.setPlaybackQualityRange=function(a,b){var c=g.ZK(this.app,this.playerType);c&&(a=g.Ex(a,b||a,!0,"m"),g.eMa(c,a,!0))}; g.h.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)}; g.h.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.h.addBgVersionChangeCallback=function(a){this.app.addBgVersionChangeCallback(a)}; g.h.dispatchReduxAction=function(a){g.B0.dispatch(a)}; g.h.ea=function(a){var b=g.Da.apply(1,arguments);this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.wm.ea.apply(this.app.wm,[a].concat(g.u(b)));this.app.Vm.ea.apply(this.app.Vm,[a].concat(g.u(b)))}; g.h.Na=function(a){var b=g.Da.apply(1,arguments);this.app.wm.ea.apply(this.app.wm,[a].concat(g.u(b)));this.app.Vm.ea.apply(this.app.Vm,[a].concat(g.u(b)))}; g.h.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.h.logImaAdEvent=function(a,b){this.app.V().eg&&JU(this.app).allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Fca(this.app.V().loaderUrl),eventType:a},g.xs("embedsAdEvent",a))}; g.h.S=function(a){return this.app.V().S(a)}; g.h.Qa=function(){}; g.h.qa=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.J={};g.G.prototype.qa.call(this)};g.v(PK,JK);g.h=PK.prototype;g.h.addCueRange=function(a,b,c,d,e){return jV(this.app,a,b,c,d,e)}; g.h.getPlayerState=function(a){return SMa(this.app,a)}; g.h.nextVideo=function(a,b){this.app.nextVideo(a,b)}; g.h.previousVideo=function(a){this.app.previousVideo(a)}; g.h.seekBy=function(a,b,c){lV(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)}; g.h.seekTo=function(a,b,c,d){lV(this.app,a,b,c,d||this.playerType)}; g.h.getStoryboardFormat=function(){return this.app.getStoryboardFormat()}; g.h.DA=function(a){a=void 0===a?this.playerType:a;var b=JK.prototype.DA.call(this,a)||{};if(a=g.ZK(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isLive=a.isLivePlayback;b.isPremiere=a.isPremiere;b.isWindowedLive=a.fh;b.isManifestless=TD(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.Wa;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)? 0:c.utcTimeMillis)?Lh(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Lh(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.jR;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=Gwa(a);b.paidContentOverlayDurationMs=eE(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.j&&Jx(a.j)&&(b.usingLocalMedia= "true");XD(a)&&(b.isEncrypted=!0);if(a.C)for(e=g.r(a.C.videoInfos),c=e.next();!c.done;c=e.next())if(d=void 0,null==(d=c.value.video)?0:d.isHdr()){b.isHdr=!0;break}var f,k;b.isMultiChannelAudio=!!(null==(f=a.J)?0:null==(k=f.audio)?0:k.isMultiChannelAudio())}return b}; g.h.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):JK.prototype.getCurrentTime.call(this)}; g.h.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=TK(this.app.sb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):JK.prototype.getDuration.call(this)}; g.h.getProgressState=function(a){if(3===this.getPresentingPlayerType())return TK(this.app.sb()).getProgressState();var b=this.app.getVideoData(),c=(g.ZK(this.app,a)||g.ZK(this.app)).getPlayerType();a:{var d=this.app.getVideoData();var e;if(null==(e=d.progressBarStartPosition)?0:e.utcTimeMillis)if(d=Number(d.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=WBa(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null==(f=e.progressBarEndPosition)?0:f.utcTimeMillis)if(f=Number(e.progressBarEndPosition.utcTimeMillis)/ 1E3,!isNaN(f)){f=WBa(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var k=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.qt(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.ZK(p,c))?(c=SU(p,c),c=dV(p,CP(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.rf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:k,isAtLiveHead:l,loaded:m,seekableStart:n,seekableEnd:c}}; g.h.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.h.getCurrentBroadcastId=function(){return null}; g.h.handleGlobalKeyDown=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.NK(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,k)}; g.h.handleGlobalKeyUp=function(a,b,c,d,e,f,k){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.NK(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,k)}; g.h.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)}; g.h.showControls=function(){var a=g.NK(this);a&&a.showControls(!0)}; g.h.hideControls=function(){var a=g.NK(this);a&&a.showControls(!1)}; g.h.getVideoContentRect=function(a){a=this.app.bb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}}; g.h.setFauxFullscreen=function(a){g.Wu();this.app.ij(a?2:0)}; g.h.toggleFullscreen=function(){function a(c){g.Mv(c)} var b=this.app.V();if(b.externalFullscreen){if(!g.NC(b))return this.isFullscreen()?Yu(window.document.documentElement):Vu(window.document.documentElement).catch(a)}else if(g.Wu()||b.J)return this.isFullscreen()?Yu(Xu()):"3"!==b.controlsType&&g.Wu()?Vu(this.app.bb().element).catch(a):(b=this.app.xd().Ke())?Vu(b).catch(a):Promise.reject(Error("Media element missing"));this.Na("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}; g.h.cancelPlayback=function(){var a=wL(this.app.sb());a&&a.created&&a.destroy();(a=g.ZK(this.app))&&a.stopVideo();(a=this.app.sb().Md.get("endscreen"))&&a.xV()&&g.SK(this.app.Ta,!0)}; g.h.stopVideo=function(){var a=this.app.V();!a.S("disable_new_pause_state3")&&IC(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():JK.prototype.stopVideo.call(this)}; g.h.getVideoStats=function(){return g.ZK(this.app,this.playerType).Mb(!0)}; g.h.toggleSubtitles=function(){var a=g.rL(this.app.sb());a&&a.p_()}; g.h.getDebugText=function(a){return this.app.getDebugText(a)}; g.h.setSphericalProperties=function(a){if(a){var b=g.VK(this.app.sb());b&&b.setSphericalProperties(a,!0)}}; g.h.getSphericalProperties=function(){var a=g.VK(this.app.sb());return a?a.getSphericalProperties():{}}; g.h.setVolume=function(a,b){RBa(this,a,b)}; g.h.mute=function(a){SBa(this,a)}; g.h.unMute=function(a){TBa(this,a)}; g.h.mutedAutoplay=function(){this.S("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()}; g.h.loadModule=function(a){if("annotations_module"===a){var b=g.AL(this.app.sb());b&&!b.loaded&&b.load()}JK.prototype.loadModule.call(this,a)}; g.h.unloadModule=function(a){if("annotations_module"===a){var b=g.AL(this.app.sb());b&&b.loaded&&b.unload()}JK.prototype.unloadModule.call(this,a)}; g.h.setOption=function(a,b,c){if(!b)return null;var d=this.app.sb();switch(a){case "ad":return(a=wL(d))&&a.xf&&a.xf(b,c);case "kids":return(a=xL(d))&&a.xf(b,c);case "remote":return(a=TK(d))&&a.xf(b,c);case "unplugged":return(a=g.yL(d))&&a.xf(b,c);case "annotations_module":return(a=g.AL(d))&&a.xf(b,c);case "creatorendscreen":return(a=BL(d))&&a.xf(b,c)}return JK.prototype.setOption.call(this,a,b,c)}; g.h.getOptions=function(a){var b=this.app.sb();switch(a){case "ad":return(b=wL(b))&&b.getOptions&&b.getOptions();case "remote":return(b=TK(b))&&b.getOptions();case "annotations_module":return(b=g.AL(b))&&b.getOptions();case "creatorendscreen":return(b=BL(b))&&b.getOptions();case "unplugged":return(b=g.yL(b))&&b.getOptions();case "kids":return(b=xL(b))&&b.getOptions()}if(!a){a=JK.prototype.getOptions.call(this);if(!a)return a;wL(b)&&a.push("ad");TK(b)&&a.push("remote");g.AL(b)&&a.push("annotations_module"); BL(b)&&a.push("creatorendscreen");g.yL(b)&&a.push("unplugged");xL(b)&&a.push("kids");return a}return JK.prototype.getOptions.call(this,a)}; g.h.getPlayerSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}}; g.h.wakeUpControls=function(){var a=g.NK(this);a&&a.Nl()}; g.h.setCenterCrop=function(a){this.app.bb().setCenterCrop(a)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var UBa="BASE_URL BASE_YT_URL adformat allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable playsinline plid post_live_playback postid ps public rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), VBa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.v(g.QK,PK);g.h=g.QK.prototype;g.h.wk=function(a,b,c,d,e,f){return this.app.wk(a,b,c,d,e,f)}; g.h.Gw=function(){return this.app.Gw()}; g.h.oq=ca(4);g.h.sb=function(){return this.app.sb()}; g.h.Be=function(){var a=this.sb().Md.get("endscreen");return!!a&&a.Be()}; g.h.getRootNode=function(){return this.bb().element}; g.h.V=function(){return this.app.V()}; g.h.ut=ca(6);g.h.ll=function(a){return this.app.ll(a)}; g.h.Co=function(){return this.settingsMenu}; g.h.Tw=function(){return this.lD}; g.h.yb=function(a){return this.app.yb(a)}; g.h.bb=function(){return this.app.bb()}; g.h.getPlaylist=function(){return this.app.getPlaylist()}; g.h.getVideoData=function(a){var b=g.ZK(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.zd))b=void 0;else{var d=a.getCurrentTime();b=b.Rn?void 0:null==(c=VP(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c}; g.h.hh=function(a){return this.app.hh(a)}; g.h.isWidescreen=function(){return this.app.isWidescreen()}; g.h.isHdr=function(){var a=g.ZK(this.app);return a?a.isHdr():!1}; g.h.lx=function(){return this.app.lx()}; g.h.Au=function(a){this.app.Au(a)}; g.h.Wf=function(a,b,c,d,e){this.app.Xe(a,b,c,d,e)}; g.h.Ll=ca(10);g.h.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){TK(this.app.sb()).Dl("control_play");return}if(2===this.getPresentingPlayerType()){var b=wL(this.app.sb());if(b&&(b.Qj()||s_(b)))return}}catch(c){g.S(c)}this.app.playVideo(a)}; g.h.stopVideo=function(a){g.ZK(this.app,a).stopVideo()}; g.h.Xm=function(a){g.ZK(this.app,a).Xm()}; g.h.addEventListener=function(a,b){this.app.Vm.subscribe(a,b)}; g.h.removeEventListener=function(a,b){this.app.Vm.unsubscribe(a,b)}; g.h.ea=function(a){PK.prototype.ea.call.apply(PK.prototype.ea,[this,a].concat(g.u(g.Da.apply(1,arguments))))}; g.h.aj=function(a){this.app.aj(a)}; g.h.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)}; g.h.jo=function(){var a={},b=g.ZK(this.app).jo();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a}; g.h.Qw=ca(12);g.h.cC=function(a){this.app.cC(a);a&&bNa(this.app,a)}; g.h.getDebugText=function(a){return this.app.getDebugText(a)}; g.h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var k;a||d.isLivePlayback||(k=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,k,b,c)}; g.h.Rw=ca(14);g.h.bk=ca(18);g.h.Ot=function(a,b){this.sb().Ot(a,b)}; g.h.Ih=function(){var a=g.AL(this.sb());return!!a&&a.Ih()}; g.h.Uk=function(){var a=g.AL(this.sb());return!!a&&a.Uk()}; g.h.setCardsVisible=function(a,b,c){var d=g.AL(this.sb());d&&d.setCardsVisible(a,b,c)}; g.h.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)}; g.h.wu=ca(19);g.h.Kr=function(){var a=g.ZK(this.app);a&&a.Kr()}; g.h.uy=function(a){this.Na("onVideoAreaChange");this.Na(a?"onShowControls":"onHideControls")}; g.h.Lj=function(a,b){var c=g.NK(this);if(c)return c.Lj(a,b);a=this.app.bb().Eg();return new g.Am(0,0,a.width,a.height)}; g.h.Do=function(){return this.app.Do()}; g.h.kx=function(){var a=this.sb().Md.get("heartbeat");return!!a&&a.kx()}; g.h.rf=function(){var a=this.V();if(a.va||a.disableSeek)return!1;a=g.ZK(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.iE(b)||2===this.getPresentingPlayerType()&&!this.app.me()||a.ul()&&3!==this.getPresentingPlayerType()?!1:!0}; g.h.gx=function(){var a;return(null==(a=g.ZK(this.app))?void 0:a.gx)||!1}; g.h.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.h.rp=function(){var a=g.ZK(this.app);a&&a.rp()}; g.h.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)}; g.h.Qd=function(a,b,c){this.app.Vv(a,b,c)}; g.h.Vf=function(a,b){this.app.XB(a,b)}; g.h.jf=function(a,b){var c=this.app,d=g.ZK(c,b);d&&(a=d.zg.jf(a),b&&c.getPresentingPlayerType()!==b||PU(c,"cuerangesremoved",a))}; g.h.Je=function(a,b){(b=g.ZK(this.app,b))&&b.Je(a)}; g.h.ul=function(){var a=g.ZK(this.app,void 0);return a?a.ul():!0}; g.h.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)}; g.h.setVolume=function(a){a=g.xh(a,0,100);LK(this.app,{volume:a,muted:this.isMuted()},!0)}; g.h.mute=function(){LK(this.app,{muted:!0,volume:this.getVolume()},!0)}; g.h.unMute=function(){LK(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)}; g.h.setLoopVideo=function(a){this.app.setLoopVideo(a)}; g.h.getLoopVideo=function(){return this.app.getLoopVideo()}; g.h.xd=function(){return this.app.xd()}; g.h.Li=function(){return this.app.Li()}; g.h.gh=function(a){return this.app.gh(a)}; g.h.getBandwidthEstimate=function(){return WB(this.V().schedule)}; g.h.Ab=function(a,b,c,d){this.V().Ra&&this.app.Mo.Ab(a,b,c,void 0===d?!1:d)}; g.h.Yg=function(a,b,c){this.V().Ra&&this.app.Mo.Yg(a,b,void 0===c?!1:c)}; g.h.jk=function(a,b){this.V().Ra&&this.app.Mo.jk(a,b)}; g.h.wb=function(a,b){this.V().Ra&&this.app.Mo.click(a,b)}; g.h.Za=function(a,b,c){if(this.V().Ra){var d=this.app.Mo;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Fv(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Uv(e,[f]):g.Vv(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Rv(e,f,c),d.B.add(a))}}; g.h.Io=function(a){return this.V().Ra?this.app.Mo.Io(a):!1}; g.h.Kc=function(){return g.ZK(this.app)}; g.h.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)}; g.h.Wm=function(){this.app.Wm()}; g.h.On=function(a,b){return this.app.On(a,b)}; g.h.Kl=function(a){this.app.Kl(a)}; g.h.mG=function(){this.app.mG()}; g.h.Ks=function(a,b,c,d,e,f){return this.app.Ks(a,b,c,d,e,f)}; g.h.bx=function(a,b,c,d,e,f){return this.app.bx(a,b,c,d,e,f)}; g.h.ep=function(a){this.app.ep(a)}; g.h.gq=function(a,b){b=void 0===b?Infinity:b;this.app.gq(void 0===a?-1:a,b)}; g.h.Mu=function(a,b,c){this.app.Mu(a,b,c)}; g.h.uo=function(){return this.app.uo()}; g.h.bA=function(a,b,c){this.app.bA(a,b,void 0===c?0:c)}; g.h.Kt=function(){return this.app.Kt()}; g.h.clearQueue=function(){this.app.clearQueue()}; g.h.me=function(){return this.app.me()}; g.h.Qo=function(a,b,c){return this.app.Qo(a,b,c)}; g.h.ya=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.ZK(this.app,d))||e.ya(a,b,c)}; g.h.jC=function(){return this.app.jC()}; g.h.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)}; g.h.DG=function(a,b){this.ea("aduxmouseover",a,b)}; g.h.CG=function(a,b){this.ea("aduxmouseout",a,b)}; g.h.XG=function(a,b){this.ea("muteadaccepted",a,b)}; g.h.UA=function(){return this.app.bb().UA()}; g.h.Bu=function(a){this.app.bb().Bu(a)};$K.prototype.HG=function(){this.u=(0,g.R)()}; $K.prototype.reset=function(){this.j=this.u=NaN}; $K.prototype.LG=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};!this.Y.S("web_player_csi_ctt_killswitch")&&a.X&&(c.cttAuthInfo={token:a.X,videoId:a.videoId});hx("seek",c);g.ix("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||fx("pl_ss",this.u,"seek");fx(b,(0,g.R)(),"seek")}this.reset()}};aL.prototype.reset=function(){dx(this.timerName)}; aL.prototype.tick=function(a,b){fx(a,b,this.timerName)}; aL.prototype.info=function(a,b){g.ix(a,b,this.timerName)};g.v(cL,g.cv);g.h=cL.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.v(RL,g.cA);RL.prototype.qg=function(){HCa(this)}; RL.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.N){var f=FCa(this);c.S("enable_web_media_session_metadata_fix")&&g.tC(c)&&f?(d=GCa(f.thumbnailDetails),f.album&&(e=g.Jw(f.album))):d=[{src:b.Re("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}HCa(this);ECa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.UK(this.I)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"), b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()}); SL(this,"nexttrack",b);SL(this,"previoustrack",c)}}; RL.prototype.qa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.j),b=a.next();!b.done;b=a.next())SL(this,b.value,null);g.cA.prototype.qa.call(this)};g.v(TL,g.W);g.h=TL.prototype;g.h.onClick=function(a){g.IL(a,this.I,!0);this.I.wb(this.element)}; g.h.onVideoDataChange=function(a,b){JCa(this,b);this.Ld&&KCa(this,this.Ld)}; g.h.Sc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&JCa(this,b);this.j&&KCa(this,a.state);this.Ld=a.state}; g.h.od=function(){this.C.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.Za(this.element,!0)}; g.h.Db=function(){this.C.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.Za(this.element,!1)};g.v(UL,g.W);UL.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)}; UL.prototype.onStateChange=function(a){LCa(a.state)?this.j.start():this.hide()}; UL.prototype.u=function(){this.message.style.display="block"};g.v(g.VL,g.hI);g.h=g.VL.prototype;g.h.show=function(){var a=this.jg();g.hI.prototype.show.call(this);this.xa&&(this.K.T(window,"blur",this.Db),this.K.T(document,"click",this.WR));a||this.ea("show",!0)}; g.h.hide=function(){var a=this.jg();g.hI.prototype.hide.call(this);MCa(this);a&&this.ea("show",!1)}; g.h.od=function(a,b){this.u=a;this.X.show();b?(this.N||(this.N=this.K.T(this.I,"appresize",this.dL)),this.dL()):this.N&&(this.K.vc(this.N),this.N=void 0)}; g.h.dL=function(){var a=g.NK(this.I);this.u&&a.gr(this.element,this.u)}; g.h.Db=function(){var a=this.jg();MCa(this);this.X.hide();a&&this.ea("show",!1)}; g.h.WR=function(a){var b=lu(a);b&&(g.di(this.element,b)||this.u&&g.di(this.u,b)||!g.gJ(a))||this.Db()}; g.h.jg=function(){return this.tb&&4!==this.X.state};g.v(XL,g.VL);XL.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(NCa(this),this.od()):(this.j&&this.wb(),this.Db()))}; XL.prototype.qg=function(a){this.api.isMutedByMutedAutoplay()&&g.rF(a,2)&&this.Db()}; XL.prototype.onClick=function(){this.api.unMute();this.wb()}; XL.prototype.wb=function(){this.clicked||(this.clicked=!0,this.api.wb(this.element))};g.v(g.ZL,g.cA);g.h=g.ZL.prototype;g.h.init=function(){var a=this.api.yb();this.Vb(a);this.un();this.xb()}; g.h.onVideoDataChange=function(a,b){this.eG!==b.videoId&&(this.eG=b.videoId,a=this.Id,a.ra=b&&0=b){this.ww=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.Ax-1);02*b&&d<3*b&&(this.mu(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.ou(a)}this.uN=Date.now();this.BP.start()}}; g.h.pY=function(a){if(!QCa(this,a)){if(!PCa(this)&&bM(this,a)&&!this.Yz.isActive()){if(g.NC(this.api.V())&&this.api.yb().isCued()){var b=void 0===b?{}:b;ex();Yw();dx();Qw(!1);b.cttAuthInfo&&(Rw().cttAuthInfo=b.cttAuthInfo);Uq("TIMING_AFT_KEYS",[]);b.tha?gx({loadType:"hot"}):gx({loadType:"warm"});Uq("TIMING_ACTION","");delete g.P("TIMING_INFO",{}).yt_lt;fx("_start",b.startTime,void 0);b=["pbs","pbu"];Xw("").info.actionType="watch";b&&Uq("TIMING_AFT_KEYS",b);Uq("TIMING_ACTION","watch");sra();b=Sw(); var c=Uw();if("cold"===b.yt_lt||"cold"===c.loadType){var d=Mw(),e=Tw();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)f in e||fx(f,d[f]);f={};d=!1;e=g.r(Object.keys(b));for(var k=e.next();!k.done;k=e.next())k=k.value,(k=kra(k,b[k]))&&!cra(Uw(void 0),k)&&(gw(c,k),gw(f,k),d=!0);d&&gx(f)}Qw(!0);b=g.P("TIMING_ACTION",void 0);g.Ka("ytglobal.timingready_")&&b&&ux("_start")&&Wqa()&&bra()}YL(this);g.ou(a)}this.ww&&(this.ww=!1)}}; g.h.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.xs("embedsRequestStorageAccessResult",{resolved:!0});Tta(!0);Uu();window.location.reload()},function(){g.xs("embedsRequestStorageAccessResult",{resolved:!1}); a.Iu()})}; g.h.IA=function(){}; g.h.Cr=function(){}; g.h.mu=function(){}; g.h.xP=function(){}; g.h.Iu=function(){var a=this.api.yb();g.V(a,2)&&g.RK(this.api)||(g.qH(a)?this.api.pauseVideo():(this.api.mG(),this.api.playVideo(),this.Zk&&document.activeElement===this.Zk.C.element&&this.api.getRootNode().focus()))}; g.h.qY=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!$L(this,lu(a)))if(a=this.api.V(),this.api.V().S("player_doubletap_to_seek")&&this.ww)this.ww=!1;else if(a.Wa&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Yw(d)})}catch(d){this.Yw(d)}}; g.h.Yw=function(a){String(a).includes("fullscreen error")?g.Mv(a):g.S(a)}; g.h.rY=function(a){RCa(this,.3,a.scale);g.ou(a)}; g.h.sY=function(a){RCa(this,.1,a.scale)}; g.h.xb=function(){var a=this.api.bb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Id.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.Ef());g.O(b,"ytp-tiny-mode",this.VA());g.O(b,"ytp-big-mode",this.bf());this.Le&&this.Le.resize(a)}; g.h.qg=function(a){this.Vb(a.state);this.un()}; g.h.lF=function(){var a=!!this.eG&&!this.api.Be(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(IRa&&c.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=wL(this.api.sb());return a&&b.ZH()}return a&&(c.Ak||this.api.isFullscreen()||c.ub)}; g.h.un=function(){var a=this.lF();this.zl!==a&&(this.zl=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.h.Vb=function(a){var b=a.isCued()||this.api.ul()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.yI&&this.vc(this.yI),this.yI=this.T(this.api.bb(),"touchstart",this.tY,void 0,b));var c=a.Ic()&&!g.V(a,32)||this.api.kx();EL(this.Id,128,!c);c=3===this.api.getPresentingPlayerType();EL(this.Id,256,c);c=this.api.getRootNode();if(g.V(a,2))var d=[v0.ENDED];else d=[],g.V(a,8)?d.push(v0.PLAYING):g.V(a,4)&&d.push(v0.PAUSED),g.V(a,1)&&!g.V(a,32)&&d.push(v0.BUFFERING),g.V(a,32)&& d.push(v0.SEEKING),g.V(a,64)&&d.push(v0.UNSTARTED);g.rc(this.XD,d)||(g.xp(c,this.XD),this.XD=d,g.vp(c,d));d=this.api.V();var e=g.V(a,2);g.O(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b||this.api.V().S("enable_post_ad_perception_survey_in_desktop")&&this.Qj());g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.KF);g.V(a,128)&&!g.kC(d)?(this.Le||(this.Le=new g.NL(this.api),g.H(this,this.Le),g.XK(this.api,this.Le.element,4)),this.Le.u(a.getData()),this.Le.show()): this.Le&&(this.Le.dispose(),this.Le=null)}; g.h.Qj=function(){if(2!==this.api.getPresentingPlayerType())return!1;var a=wL(this.api.sb());return a.Qj()||s_(a)}; g.h.fl=function(){return this.api.Ih()&&this.api.Uk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Be()?(g.SK(this.api,!0),!0):!1}; g.h.onMutedAutoplayChange=function(a){this.KF=a;this.rj()}; g.h.bf=function(){return!1}; g.h.Ef=function(){return!this.bf()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.h.VA=function(){return this.Ef()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.h.Oi=function(){return this.uC}; g.h.Co=function(){return null}; g.h.Tw=function(){return null}; g.h.Lj=function(){var a=this.api.bb().getPlayerSize();return new g.Am(0,0,a.width,a.height)}; g.h.handleGlobalKeyDown=function(){return!1}; g.h.handleGlobalKeyUp=function(){return!1}; g.h.gr=function(){}; g.h.showControls=function(a){void 0!==a&&this.api.bb().uy(a)}; g.h.Nl=function(){}; g.h.xM=function(){return null};g.v(cM,g.cv);g.h=cM.prototype;g.h.Kw=function(){return 1E3*this.api.getDuration(this.vk,!1)}; g.h.stop=function(){this.j&&this.Lc.vc(this.j)}; g.h.Pb=function(){var a=this.api.getProgressState(this.vk);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().S("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.vk,!1)};this.ea("h")}; g.h.getProgressState=function(){return this.u}; g.h.Sc=function(a){g.rF(a,2)&&this.ea("g")};g.v(dM,g.W);dM.prototype.onClick=function(){this.I.Na("BACK_CLICKED")};g.v(g.eM,g.W);g.eM.prototype.show=function(){g.W.prototype.show.call(this);g.op(this.j)}; g.eM.prototype.hide=function(){this.u.stop();g.W.prototype.hide.call(this)}; g.eM.prototype.Cr=function(a){a?g.V(this.I.yb(),64)||fM(this,sI(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?fM(this,gAa(),"Stop live playback"):fM(this,cAa(),"Pause"))};g.v(iM,g.W);g.h=iM.prototype;g.h.od=function(){this.I.V().S("player_new_info_card_format")&&g.up(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.kC(this.I.V())||(this.u.show(),g.Eu("iv-button-shown"))}; g.h.Db=function(){g.Eu("iv-button-hidden");this.u.hide()}; g.h.jg=function(){return this.tb&&4!==this.u.state}; g.h.qa=function(){this.j&&this.j();g.W.prototype.qa.call(this)}; g.h.pX=function(){g.Eu("iv-button-mouseover")}; g.h.onClicked=function(a){this.I.Ih();var b=g.up(this.I.getRootNode(),"ytp-cards-teaser-shown");g.Eu("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.Uk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.v(kM,g.W);g.h=kM.prototype;g.h.AQ=function(){this.I.Ih()&&this.I.Uk()&&this.jg()&&this.Db()}; g.h.mI=function(){this.Db();g.Eu("iv-teaser-clicked",null!=this.j);this.onClickCommand?this.I.Na("innertubeCommand",this.onClickCommand):this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; g.h.XR=function(){g.Eu("iv-teaser-mouseover");this.j&&this.j.stop()}; g.h.QY=function(a){this.I.V().S("player_new_info_card_format")&&!g.kC(this.I.V())&&this.Hi.Db();this.j||!a||this.I.Uk()||this.u&&this.u.isActive()||(this.od(a),g.Eu("iv-teaser-shown"))}; g.h.od=function(a){this.onClickCommand=a.onClickCommand;this.La("text",a.teaserText);this.element.setAttribute("dir",g.Kp(a.teaserText));this.C.show();this.u=new g.L(function(){g.M(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.S("player_new_info_card_format")&&!g.kC(this.I.V())&&this.Hi.Db();this.KI()},0,this); this.u.start();hM(this.Hi,!1);this.j=new g.L(this.Db,580+a.durationMs,this);this.j.start();this.D.push(this.Oa("mouseover",this.HJ,this));this.D.push(this.Oa("mouseout",this.GJ,this))}; g.h.KI=function(){if(!this.I.V().S("player_new_info_card_format")&&g.kC(this.I.V())&&this.tb){var a=this.Hi.element.offsetLeft,b=g.Sh("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Hi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.h.XT=function(){g.kC(this.I.V())&&this.X.Ef()&&this.tb&&this.N.start()}; g.h.HJ=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()}; g.h.GJ=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()}; g.h.DX=function(){this.j&&this.j.stop()}; g.h.CX=function(){this.Db()}; g.h.Ti=function(){this.Db()}; g.h.Db=function(){!this.j||this.B&&this.B.isActive()||(g.Eu("iv-teaser-hidden"),this.C.hide(),g.wp(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.L(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.vc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);hM(this.Hi,!0)},330,this),this.B.start())}; g.h.jg=function(){return this.tb&&4!==this.C.state}; g.h.qa=function(){var a=this.I.getRootNode();a&&g.wp(a,"ytp-cards-teaser-shown");g.Af(this.u,this.B,this.j);g.W.prototype.qa.call(this)};var E0={},lM=(E0.BUTTON="ytp-button",E0.TITLE_NOTIFICATIONS="ytp-title-notifications",E0.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",E0.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",E0.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",E0);g.v(mM,g.W);mM.prototype.onClick=function(){this.api.wb(this.element);var a=!this.j;this.La("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.La("pressed",a);UCa(this,a)};g.v(g.oM,g.W);g.oM.prototype.u=function(){g.M(this.element,"ytp-sb-subscribed")}; g.oM.prototype.B=function(){g.wp(this.element,"ytp-sb-subscribed")};g.v(pM,g.W);g.h=pM.prototype;g.h.EH=function(){YCa(this);this.channel.classList.remove("ytp-title-expanded")}; g.h.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.h.UE=function(){if(WCa(this)&&!this.isExpanded()){this.La("flyoutUnfocusable","false");this.La("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.Za(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Sh&&a.subscribed&&(this.u.show(),this.api.Za(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.h.xE=function(){this.La("flyoutUnfocusable","true");this.La("channelTitleFocusable","-1");this.B&&this.B.start()}; g.h.Ja=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.Kb&&!!a.profilePicture:g.kC(b)&&(c=!!a.videoId&&!!a.Kb&&!!a.profilePicture&&!(a.D&&b.pfpChazalUi)&&!b.C&&!(b.J&&200>this.api.getPlayerSize().width));var d=g.VC(this.api.V())+a.Kb;g.kC(b)&&(d=ZCa(this,d));var e=a.Kb,f=a.profilePicture;b=g.kC(b)?a.expandedTitle:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;if(c){var k=this.api.V();e= g.VC(k)+e;g.kC(k)&&(e=ZCa(this,e));this.K!==f&&(this.j.style.backgroundImage="url("+f+")",this.K=f);this.La("channelLink",e);this.La("channelLogoLabel",g.HF("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b}));g.M(this.api.getRootNode(),"ytp-title-enable-channel-logo")}else g.wp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Za(this.j,c&&this.ra);this.subscribeButton&&(this.subscribeButton.channelId=a.sj);this.La("expandedTitle",a.expandedTitle);this.La("channelTitleLink",d);this.La("expandedSubtitle", a.expandedSubtitle)};g.v(g.qM,g.hI);g.qM.prototype.Jf=function(a){this.La("label",a)}; g.qM.prototype.La=function(a,b){g.hI.prototype.La.call(this,a,b);this.ea("size-change")};g.v(tM,g.hI);tM.prototype.oO=function(){this.ea("size-change")}; tM.prototype.focus=function(){this.content.focus()}; tM.prototype.iO=function(){this.ea("back")};g.v(g.uM,tM);g.uM.prototype.wc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.oc(this.items,a,aDa);if(0<=b)return;b=~b;g.lc(this.items,b,0,a);g.ai(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.WG,this);this.menuItems.ea("size-change")}; g.uM.prototype.kf=function(a){a.unsubscribe("size-change",this.WG,this);this.isDisposed()||(g.fc(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))}; g.uM.prototype.WG=function(){this.menuItems.ea("size-change")}; g.uM.prototype.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(k=a,e=b,f=5,65==(f&65)&&(k.x=d.right)&&(f&=-2),132==(f&132)&&(k.y=d.bottom)&& (f&=-5),k.xd.right&&(e.width=Math.min(d.right-k.x,c+e.width-d.left),e.width=Math.max(e.width,0))),k.x+e.width>d.right&&f&1&&(k.x=Math.max(d.right-e.width,d.left)),k.yd.bottom&&(e.height=Math.min(d.bottom-k.y,c+e.height-d.top),e.height=Math.max(e.height,0))),k.y+e.height>d.bottom&&f&4&&(k.y=Math.max(d.bottom-e.height,d.top)));d=new g.Am(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Jm(this.element,new g.Bh(d.left,d.top));g.bv(this.B);this.B.T(document,"contextmenu",this.eX);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.bS)}; g.h.eX=function(a){if(!g.pu(a)){var b=lu(a);g.di(this.element,b)||this.Db();this.I.V().disableNativeContextMenu&&g.ou(a)}}; g.h.onFullscreenToggled=function(){this.Db();hDa(this)}; g.h.bS=function(){this.Db()};g.v(g.HM,g.W);g.HM.prototype.onClick=function(){var a=this,b,c,d,e;return g.B(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.A(f,jDa(a,e),2);f.u&&iDa(a);a.api.wb(a.element);g.ua(f)})}; g.HM.prototype.Ja=function(){var a=this.api.V(),b=this.api.getVideoData();this.La("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.La("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible= !!b.videoId&&c>=this.u&&b.Lk&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.gI(this,this.visible);JM(this.tooltip);this.api.Za(this.element,this.visible&&this.ra)}; g.HM.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)}; g.HM.prototype.qa=function(){g.W.prototype.qa.call(this);g.wp(this.element,"ytp-copylink-button-visible")};g.v(KM,g.W);g.h=KM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.op(this.j)}; g.h.hide=function(){this.u.stop();g.wp(this.element,"ytp-chapter-seek");g.wp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.h.mu=function(a,b,c,d){this.nu(a,d)}; g.h.nu=function(a,b){g.qp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.wp(this.element,"ytp-chapter-seek");this.La("chapterSeekText","");a=g.HF("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.La("seekTime",a)}; g.h.ZB=function(a,b){g.qp(this.j);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-chapter-seek");this.La("chapterSeekText",b);this.La("seekTime","")};g.v(LM,g.W);g.h=LM.prototype;g.h.show=function(){g.W.prototype.show.call(this);g.op(this.u)}; g.h.hide=function(){this.B.stop();g.wp(this.element,"ytp-chapter-seek");g.wp(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; g.h.mu=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.wb(e);g.qp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.bb().getPlayerSize().height;e=this.I.bb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var k=2.5*f;f=k/2;var l=this.Ca("ytp-doubletap-ripple");l.style.width=k+"px";l.style.height= k+"px";1===a?(a=this.I.bb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ca("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");kDa(this,d)}; g.h.nu=function(a,b){var c=this.I.bb().getPlayerSize();g.qp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.M(this.element,"ytp-time-seeking");this.j.style.width="110px";this.j.style.height="110px";1===a?(this.j.style.right="",this.j.style.left=.8*c.width-30+"px"):-1===a&&(this.j.style.right="",this.j.style.left=.1*c.width-15+"px");this.j.style.top=.5*c.height+15+"px";kDa(this,b)}; g.h.ZB=function(a,b){g.qp(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.j.style.width="0";this.j.style.height="0";g.M(this.element,"ytp-chapter-seek");this.La("seekText",b);this.La("seekTime","")};var GTa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(GTa).reduce(function(a,b){a[GTa[b]]=b;return a},{}); var HTa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(HTa).reduce(function(a,b){a[HTa[b]]=b;return a},{}); var ITa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ITa).reduce(function(a,b){a[ITa[b]]=b;return a},{});var F0,JTa;F0=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];JTa=[{option:0,text:MM(0)},{option:.25,text:MM(.25)},{option:.5,text:MM(.5)},{option:.75,text:MM(.75)},{option:1,text:MM(1)}]; g.QM=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:F0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:MM(.5)},{option:-1,text:MM(.75)},{option:0,text:MM(1)},{option:1,text:MM(1.5)},{option:2,text:MM(2)}, {option:3,text:MM(3)},{option:4,text:MM(4)}]},{option:"background",text:"Background color",options:F0},{option:"backgroundOpacity",text:"Background opacity",options:JTa},{option:"windowColor",text:"Window color",options:F0},{option:"windowOpacity",text:"Window opacity",options:JTa},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",text:"Font opacity", options:[{option:.25,text:MM(.25)},{option:.5,text:MM(.5)},{option:.75,text:MM(.75)},{option:1,text:MM(1)}]}];g.v(g.PM,g.cA);g.h=g.PM.prototype; g.h.HM=function(a){var b=!1,c=g.qu(a),d=lu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.api.V();g.pu(a)?(e=!1,k=!0):l.ag&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"), d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);gM(this.xc,f,!1);this.api.setVolume(f);k=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);gM(this.xc,f,!0);this.api.setVolume(f);k=f=!0;break;case 36:this.api.rf()&&(this.api.startSeekCsiAction(), this.api.seekTo(0),k=f=!0);break;case 35:this.api.rf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),k=f=!0)}}b&&OM(this,!0);(b||k)&&this.Id.Nl();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.ou(a);l.B&&(a={keyCode:g.qu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.pu(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))}; g.h.IM=function(a){this.handleGlobalKeyUp(g.qu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; g.h.handleGlobalKeyUp=function(a){var b=!1,c=g.VK(this.api.sb());c&&(c=c.tp)&&c.tb&&(c.DM(a),b=!0);9===a&&(OM(this,!0),b=!0);return b}; g.h.handleGlobalKeyDown=function(a,b,c,d,e,f){var k=!1;e=this.api.V();if(e.ag)return k;var l=g.VK(this.api.sb());if(l&&(l=l.tp)&&l.tb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=l.CM(a)}e.D||k||(k=f||String.fromCharCode(a).toLowerCase(),this.u+=k,0==="awesome".indexOf(this.u)?(k=!0,7===this.u.length&&via(this.api.getRootNode(),"ytp-color-party")):(this.u=k,k=0==="awesome".indexOf(this.u)));if(!k){f=(f=this.api.getVideoData())?f.Ak:[];l=DQ?d:c;switch(a){case 80:b&& !e.va&&(fM(this.xc,fAa(),"Previous"),this.api.previousVideo(),k=!0);break;case 78:b&&!e.va&&(fM(this.xc,qI(),"Next"),this.api.nextVideo(),k=!0);break;case 74:this.api.rf()&&(this.api.startSeekCsiAction(),this.j?this.j.nu(-1,10):fM(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate()),k=!0);break;case 76:this.api.rf()&&(this.api.startSeekCsiAction(),this.j?this.j.nu(1,10):fM(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate()),k=!0);break;case 37:this.api.rf()&&(this.api.startSeekCsiAction(),l?(l=nDa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.ZB(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(this.j?this.j.nu(-1,5):fM(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate()),k=!0));break;case 39:this.api.rf()&&(this.api.startSeekCsiAction(),l?(l=mDa(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.j&&(this.j.ZB(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),k=!0)):(null!=this.j?this.j.nu(1,5):fM(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate()),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),gM(this.xc,this.api.getVolume(),!1)):(this.api.mute(),gM(this.xc,0,!0));k=!0;break;case 32:case 75:e.va||(k=!g.qH(this.api.yb()),this.xc.Cr(k),k?this.api.playVideo():this.api.pauseVideo(),k=!0);break;case 190:b?e.Cc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),SCa(this.xc,!1),k=!0):this.api.rf()&&(qDa(this,1),k=!0);break;case 188:b?e.Cc&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k- .25,!0),SCa(this.xc,!0),k=!0):this.api.rf()&&(qDa(this,-1),k=!0);break;case 70:zCa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0); break;case 27:this.C()&&(k=!0)}if("3"!==e.controlsType)switch(a){case 67:g.rL(this.api.sb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),TCa(this.xc,!e||e&&!e.displayName),k=!0);break;case 79:RM(this,"textOpacity");break;case 87:RM(this,"windowOpacity");break;case 187:case 61:RM(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:RM(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48:96<=a&&105>=a&&(m=a-96));null!=m&&this.api.rf()&&(this.api.startSeekCsiAction(), a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),k=!0);k&&this.Id.Nl()}return k}; g.h.qa=function(){g.qp(this.B);g.cA.prototype.qa.call(this)};g.v(SM,g.W);SM.prototype.Ja=function(){var a=g.kC(this.I.V())&&g.UK(this.I)&&g.V(this.I.yb(),128),b=this.I.getPlayerSize();this.visible=this.j.Ef()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&JM(this.tooltip);this.I.Za(this.element,this.visible&&this.ra)}; SM.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.I.Za(this.element,this.visible&&a)}; SM.prototype.qa=function(){g.W.prototype.qa.call(this);g.wp(this.element,"ytp-overflow-button-visible")};g.v(TM,g.VL);g.h=TM.prototype;g.h.dS=function(a){a=lu(a);g.di(this.element,a)&&(g.di(this.j,a)||g.di(this.closeButton,a)||WL(this))}; g.h.Db=function(){g.VL.prototype.Db.call(this);this.tooltip.Ej(this.element)}; g.h.show=function(){this.tb&&this.I.ea("OVERFLOW_PANEL_OPENED");g.VL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");rDa(this,!0)}; g.h.hide=function(){g.VL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");rDa(this,!1)}; g.h.onFullscreenToggled=function(a){!a&&this.jg()&&WL(this)}; g.h.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.tb){b.focus();break}};g.v(VM,g.W);VM.prototype.onClick=function(a){g.IL(a,this.api)&&this.api.playVideoAt(this.index)};g.v(WM,g.VL);g.h=WM.prototype;g.h.show=function(){g.VL.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.mD);this.B.T(this.api,"onPlaylistUpdate",this.mD);this.mD()}; g.h.hide=function(){g.VL.prototype.hide.call(this);g.bv(this.B);this.updatePlaylist(null)}; g.h.mD=function(){this.updatePlaylist(this.api.getPlaylist())}; g.h.dC=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{for(var c=g.r(this.j),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.j=[];for(d=0;dthis.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.HF("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.HF("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.tb||(this.show(),JM(this.tooltip)),this.visible=!0,this.jc(!0)): this.tb&&(this.hide(),this.jc(!1),JM(this.tooltip))}; XM.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)}; XM.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ja,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ja,this);this.Ja()};g.v(YM,g.W);g.h=YM.prototype; g.h.nD=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;a=this.tooltipRenderer.text;var c=!1,d;(null==a?0:null==(d=a.runs)?0:d.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),c=!0);g.Pm(this.title,c);a=this.tooltipRenderer.detailsText;d=!1;var e;if((null==a?0:null==(e=a.runs)?0:e.length)&&a.runs[0].text){c=a.runs[0].text.toString();e=c.indexOf("$TARGET_ICON");if(-1=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.gI(this,this.visible);JM(this.tooltip);this.api.Za(this.element,this.visible&&this.ra)}; g.bN.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)}; g.bN.prototype.qa=function(){g.W.prototype.qa.call(this);g.wp(this.element,"ytp-share-button-visible")};g.v(g.cN,g.VL);g.h=g.cN.prototype;g.h.fS=function(a){a=lu(a);g.di(this.D,a)||g.di(this.closeButton,a)||WL(this)}; g.h.Db=function(){g.VL.prototype.Db.call(this);this.tooltip.Ej(this.element)}; g.h.show=function(){var a=this.tb;g.VL.prototype.show.call(this);this.Ja();a||this.api.Na("onSharePanelOpened")}; g.h.MV=function(){this.tb&&this.Ja()}; g.h.Ja=function(){var a=this;g.M(this.element,"ytp-share-panel-loading");g.wp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&FJ(this.api.ll(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.wp(a.element,"ytp-share-panel-loading"),wDa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.vC(this.api.V())&&(b=g.cj(b,g.jK({},"emb_share")));this.La("link",b);this.La("linkText",b);this.La("shareLinkWithUrl",g.HF("Share link $URL",{URL:b}));LL(this.B)}; g.h.onFullscreenToggled=function(a){!a&&this.jg()&&WL(this)}; g.h.focus=function(){this.B.focus()}; g.h.qa=function(){g.VL.prototype.qa.call(this);vDa(this)};g.v(fN,g.W);g.h=fN.prototype;g.h.FG=function(){}; g.h.GG=function(){}; g.h.By=function(){return!0}; g.h.ZZ=function(){if(this.expanded){this.va.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.va.hide();this.Va=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Va)+"px";this.ma.start()}; g.h.uU=function(){this.badge.element.style.width=(this.expanded?this.Va:34)+"px";this.Ha.start()}; g.h.C_=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.h.ri=function(){this.By()?this.N.show():this.N.hide();xDa(this)}; g.h.gS=function(){this.enabled=!1;this.ri()}; g.h.B_=function(){this.ri()}; g.h.PW=function(a){this.Ra=1===a;this.ri();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.h.iX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.ri()};g.v(gN,fN);g.h=gN.prototype;g.h.qa=function(){hN(this);fN.prototype.qa.call(this)}; g.h.FG=function(a){a.target!==this.dismissButton.element&&(zDa(this,!1),this.I.Na("innertubeCommand",this.onClickCommand))}; g.h.GG=function(){this.B=!0;zDa(this,!0);this.ri()}; g.h.UX=function(a){this.Da=a;this.ri()}; g.h.MX=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.xa&&(this.X=a,a||(a=3+this.I.getCurrentTime(),this.Qd(a)))}; g.h.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.j=!0,this.X=this.xa=this.u=this.K=!1,hN(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Da=this.enabled=!1;if(a){this.enabled=!0;if(!this.C){var c,d=null==(c=a.badgeInteractionLogging)?void 0:c.trackingParams;(this.C=!!d)&&this.I.jk(this.badge.element,d||null)}if(!this.D){var e;if(this.D=!(null==(e=a.dismissButton)||!e.trackingParams)){var f;this.I.jk(this.dismissButton.element, (null==(f=a.dismissButton)?void 0:f.trackingParams)||null)}}this.text=g.Jw(a.text);var k;if(c=null==(k=a.dismissButton)?void 0:k.a11yLabel)this.Pa=g.Jw(c);this.onClickCommand=a.onClickCommand;this.timing=a.timing;eE(b)?this.X=this.xa=!0:this.Qd()}yDa(this);eN(this);this.ri()}; g.h.By=function(){return!this.Da&&this.enabled&&!this.B&&!this.Wa.Ef()&&!this.Ra&&!this.X&&(this.u||this.j)}; g.h.Ne=function(a){(this.u=a)?(dN(this),eN(this,!1)):(hN(this),this.Z.start());this.ri()}; g.h.Qd=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.Cw(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.Cw(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Qd(b)};g.v(iN,g.VL);iN.prototype.show=function(){g.VL.prototype.show.call(this);this.C.start()}; iN.prototype.hide=function(){g.VL.prototype.hide.call(this);this.C.stop()}; iN.prototype.zt=function(a,b){"dataloaded"===a&&((this.B=b.PK,this.j=b.NK,isNaN(this.B)||isNaN(this.j))?this.D&&(this.I.jf("intro"),this.I.removeEventListener(g.Ew("intro"),this.ma),this.I.removeEventListener(g.Fw("intro"),this.Z),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.Ew("intro"),this.ma),this.I.addEventListener(g.Fw("intro"),this.Z),this.I.addEventListener("onShowControls",this.J),a=new g.Cw(this.B,this.j,{priority:9,namespace:"intro"}), this.I.Qd([a]),this.D=!0))};g.v(jN,g.W);jN.prototype.onClick=function(){this.I.rp()}; jN.prototype.Ja=function(){var a=!0;g.kC(this.I.V())&&(a=a&&480<=this.I.bb().getPlayerSize().width);g.gI(this,a);this.La("icon",this.I.Cf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:{G:"svg", W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};new qs("yt.autonav");g.v(kN,g.W);g.h=kN.prototype; g.h.yv=function(){var a;if(a=3!==this.I.getPresentingPlayerType()&&g.YK(this.I)&&400<=this.I.bb().getPlayerSize().width)a=this.I.getVideoData(),a=this.I.V().S("client_respect_autoplay_switch_button_renderer")?!!a.autoplaySwitchButtonRenderer:!1!==a.WQ;if(a)this.j||(this.j=!0,g.gI(this,this.j),this.I.V().S("web_player_autonav_toggle_always_listen")||ADa(this),a=this.I.getVideoData(),this.IJ(a.autonavState),this.I.Za(this.element,this.j));else if(this.j=!1,g.gI(this,this.j),!this.I.V().S("web_player_autonav_toggle_always_listen")){this.I.V().S("web_player_autonav_toggle_always_listen"); a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.vc(b.value)}}; g.h.IJ=function(a){CDa(this)?this.isChecked=1!==a:((a=1!==a)||(g.ks.getInstance(),a=g.Q("web_autonav_allow_off_by_default")&&!g.ls(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.ls(0,140)),this.isChecked=a);BDa(this)}; g.h.onClick=function(){this.isChecked=!this.isChecked;this.I.cC(this.isChecked?2:1);BDa(this);if(CDa(this)){var a=this.I.getVideoData().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.I.Na("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.I.Na("innertubeCommand",a.onDisabledCommand)}this.I.wb(this.element)}; g.h.getValue=function(){return this.isChecked}; g.h.setValue=function(a){this.isChecked=a;this.Ca("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.v(g.mN,g.W);g.mN.prototype.qa=function(){this.ctx=null;g.W.prototype.qa.call(this)};g.v(nN,g.W);nN.prototype.onClick=function(){this.I.Na("innertubeCommand",this.j)}; nN.prototype.K=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()}; nN.prototype.J=function(){this.C.disabled=null==this.j;g.O(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.Pb()};g.v(oN,nN);oN.prototype.onClickCommand=function(a){(null==a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Pb()}; oN.prototype.updateVideoData=function(a,b){var c;this.j=null==(c=b.eR)?void 0:c.command;nN.prototype.J.call(this)}; oN.prototype.Pb=function(){var a="",b=this.u.j,c=!!this.I.getLoopRange();if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.OG()}}; g.h.disable=function(){var a=this;if(!this.message){var b=(null!=fu(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.VL(this.I,{G:"div",Fa:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://web.archive.org/web/20220328145930/https://support.google.com/youtube/answer/6276924", target:this.I.V().K},oa:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.Xs(a.message,c)}); g.XK(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.h.Ja=function(){var a=zCa(this.I),b=this.I.V().J&&250>this.I.getPlayerSize().width;g.gI(this,a&&!b);this.I.Za(this.element,this.tb)}; g.h.ij=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=ML(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path", Ib:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=ML(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,icon:b});JM(this.u.lc())}; g.h.qa=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.qa.call(this)};g.v(vN,nN);vN.prototype.onClickCommand=function(a){(null==a?0:a.changeMarkersVisibilityCommand)&&this.Pb()}; vN.prototype.updateVideoData=function(){var a,b;this.j=null==(a=this.u.Gb)?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;nN.prototype.J.call(this)}; vN.prototype.Pb=function(){var a="",b=this.u.X,c,d=null==(c=this.u.Gb)?void 0:c.headerTitle;c=d?g.Jw(d):"";d=!!this.I.getLoopRange();1a&&this.delay.start()}; var LTa=new g.Lp(0,0,.4,0,.2,1,1,1),HDa=/[0-9.-]+|[^0-9.-]+/g;g.v(g.BN,g.W);g.h=g.BN.prototype;g.h.JJ=function(a){this.visible=300<=a.width;g.gI(this,this.visible);this.I.Za(this.element,this.visible&&this.ra)}; g.h.EX=function(){this.I.V().ra?this.I.isMuted()?this.I.unMute():this.I.mute():WL(this.message,this.element,!0);this.I.wb(this.element)}; g.h.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.h.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.V();a=0===d?1:50this.clipEnd)&&this.WB()}; g.h.hX=function(a){if(!g.pu(a)){var b=!1;switch(g.qu(a)){case 32:var c;(null==(c=this.u)?0:c.isEnabled)&&this.ZE();b=!0;break;case 27:var d;(null==(d=this.u)?0:d.isEnabled)&&this.bM();b=!0}b&&g.ou(a)}}; g.h.kS=function(a){if(!g.pu(a)){var b=!1;switch(g.qu(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.ou(a)}}; g.h.zt=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.h.VU=function(){this.zt("newdata",this.api.getVideoData())}; g.h.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(zE(a)||YN(this)?this.Ub=!1:this.Ub=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!zE(a))));lEa(this,this.api.rf());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;aO(this);for(WN(this,this.ma,this.ib);0n&&(l.end=n);n=oDa(n,n+q);k.push(n);l=n;f[n.id]=c[m].onActiveCommand}}this.api.Qd(k);this.Gb=this.Zc[b];c=!0}e=c}if(e)d.yN=this.X;else if(e=d.VD)ZDa(this,e),d.Ak=this.j,YDa(this)}a.tK&&0===this.J.length&&(a=a.tK,d=a.key,a.isVisible&&d&&TN(this,d))}}VN(this)}; g.h.jS=function(a){this.Z&&!g.V(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Z.cancel()}; g.h.NJ=function(a){var b=!!this.Tb!==!!a;(this.Tb=a)?(this.La("clipstarticon",bAa()),this.La("clipendicon",bAa()),this.La("clipstarttitle",null),this.La("clipendtitle",null)):(this.La("clipstarticon",Xza()),this.La("clipendicon",Wza()),this.La("clipstarttitle","Watch full video"),this.La("clipendtitle","Watch full video"));aO(this);WN(this,this.ma,this.ib);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.SN(this))}; g.h.XX=function(a,b,c){var d=g.Lm(this.element),e=UN(this).j,f=c?c.getAttribute("data-tooltip"):void 0,k=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;k&&(a=mJ(this.B,Number(c.getAttribute("data-position")),0)*e+g.Lm(this.Hc).x);this.Kb.x=a-d.x;this.Kb.y=b-d.y;a=UN(this);c=$N(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:zE(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,b=-this.xa,m=mJ(this.B,m)*UN(this).j+b,a.position=m), b=this.B.u;YN(this)&&(b=this.B.u);m=f||g.fJ(this.Ub?c-this.B.j:c-b);b=a.position+this.Pf;c-=this.api.pd();if(this.api.hh()){if(1=e&&p.timeRangeStartMillis=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(d=n.label,m=g.fJ(n.decorationTimeMillis/1E3),e=!0);this.Uc!==e&&(this.Uc=e,this.api.Za(this.Oc,this.Uc));g.O(this.api.getRootNode(),"ytp-progress-bar-decoration",e);e=320*this.tooltip.scale;k=d.length*(this.C?8.55:5.7);e=k<=e?k:e;k=e<160*this.tooltip.scale;n=3;!k&&e/2>a.position&&(n=1);!k&&e/2>this.D-a.position&&(n=2);this.api.V().J&&(l-=10);this.J.length&&this.J[0].isValid&&(l-= 14*(this.C?2:1),this.Ia||(this.Ia=!0,this.api.Za(this.va,this.Ia)));var q;if(ON(this)&&((null==(q=this.u)?0:q.isEnabled)||0=.5*b?(this.u.enable(),HN(this.u,this.api.getCurrentTime()),kEa(this,b)):fO(this);g.O(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled)}else if(this.Sb=0,g.wp(this.element,"ytp-pull-ui"),g.wp(this.element,"ytp-pulling"),this.K&&(this.K.dispose(),this.K=null),0l||1l&&a.K.start();a.Ra&&(a.Ra=!1,a.api.Za(a.gb,a.Ra))}); this.K.start()}if(g.V(this.api.yb(),32)||3===this.api.getPresentingPlayerType()){this.api.startSeekCsiAction();if(1=e.visibleTimeRangeStartMillis&&1E3*b<=e.visibleTimeRangeEndMillis&&this.api.wb(this.Oc)}g.wp(this.element,"ytp-drag");this.Td&&!g.V(this.api.yb(),2)&&this.api.playVideo()}}; g.h.ZX=function(a,b){var c=this,d=!1,e=!1;a=UN(this);1===this.j.length&&!ON(this)&&3600<=kJ(this.B)&&(fEa(this,this.kd-b-10,a.position,a.B),e=!0,d=this.N>.1*(this.C?60:40),a=UN(this));g.O(this.element,"ytp-pull-ui",e);d&&g.M(this.element,"ytp-pulling");d=0;a.u&&0>=a.position?d=-1:a.D&&a.position>=a.width&&(d=1);if(this.Sb!==d&&(this.Sb=d,this.K&&(this.K.dispose(),this.K=null),d)){var f=(0,g.R)();this.K=new g.mp(function(){var l=c.D*(c.Wa-1);c.xa=g.xh(c.xa+c.Sb*((0,g.R)()-f)*.3,0,l);XN(c);c.api.seekTo($N(c, UN(c)),!1);0=this.Vc.items.length&&this.hide();this.Vc.kf(a);a=this.Zm;a.u=0=b;g.gI(this,a);this.I.Za(this.element,a)}; oO.prototype.B=function(){if(this.rb.tb)this.rb.Db();else{var a=g.rL(this.I.sb());a&&!a.loaded&&(a.xf("tracklist",{includeAsr:!0}).length||a.load());this.I.wb(this.element);this.rb.od(this.element)}}; oO.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.WK(this.I),e=c&&!!g.VK(this.I.sb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.v(qO,yM);qO.prototype.isLoaded=function(){var a=g.AL(this.I.sb());return void 0!==a&&a.loaded}; qO.prototype.Ja=function(){void 0!==g.AL(this.I.sb())&&3!==this.I.getPresentingPlayerType()?this.j||(this.rb.wc(this),this.j=!0):this.j&&(this.rb.kf(this),this.j=!1);this.setValue(this.isLoaded())}; qO.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)}; qO.prototype.qa=function(){this.j&&this.rb.kf(this);yM.prototype.qa.call(this)};g.v(g.rO,g.qM);g.h=g.rO.prototype;g.h.open=function(){g.BM(this.rb,this.B)}; g.h.zi=function(a){nEa(this);this.options[a].element.setAttribute("aria-checked","true");this.Ad(this.Dj(a));this.u=a}; g.h.pE=function(a,b,c){var d=this;b=new g.qM({G:"div",Fa:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Fa:["ytp-menuitem-label"],oa:"{{label}}"}]},b,this.Dj(a,!0));b.Oa("click",function(){d.Nf(a)}); return b}; g.h.enable=function(a){this.C?a||(this.C=!1,this.rs(!1)):a&&(this.C=!0,this.rs(!0))}; g.h.rs=function(a){a?this.rb.wc(this):this.rb.kf(this)}; g.h.Nf=function(a){this.ea("select",a)}; g.h.Dj=function(a){return a.toString()}; g.h.lS=function(a){g.pu(a)||39!==g.qu(a)||(this.open(),g.ou(a))}; g.h.qa=function(){this.C&&this.rb.kf(this);g.qM.prototype.qa.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.v(tO,g.rO);tO.prototype.Ja=function(){var a=this.I.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.D:this.D;this.Ar(b);g.ou(a)}; g.h.nS=function(a){a=(a-g.Lm(this.u).x)/this.K*this.range+this.minimumValue;this.Ar(a)}; g.h.Ar=function(a,b){b=void 0===b?"":b;a=g.xh(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.La("valuenow",a);this.La("valuetext",b);this.N.style.left=(a-this.minimumValue)/this.range*(this.K-this.Z)+"px";this.j=a}; g.h.focus=function(){this.ma.focus()};g.v(GO,EO);GO.prototype.X=function(){this.I.setPlaybackRate(this.j,!0)}; GO.prototype.Ar=function(a){EO.prototype.Ar.call(this,a,HO(this,a).toString());this.B&&(FO(this),this.va())}; GO.prototype.xa=function(){var a=this.I.getPlaybackRate();HO(this,this.j)!==a&&(this.Ar(a),FO(this))};g.v(IO,g.hI);IO.prototype.focus=function(){this.j.focus()};g.v(pEa,tM);g.v(JO,g.rO);g.h=JO.prototype;g.h.Dj=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.h.Ja=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);sEa(this)}; g.h.rs=function(a){g.rO.prototype.rs.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),sEa(this),qEa(this,this.I.getPlaybackRate())):(this.vc(this.K),this.K=null)}; g.h.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||rEa(this,b);qEa(this,a)}; g.h.Nf=function(a){g.rO.prototype.Nf.call(this,a);a===this.j?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.rb.yh()};g.v(LO,g.rO);g.h=LO.prototype;g.h.zi=function(a){g.rO.prototype.zi.call(this,a)}; g.h.getKey=function(a){return a.option.toString()}; g.h.getOption=function(a){return this.settings[a]}; g.h.Dj=function(a){return this.getOption(a).text||""}; g.h.Nf=function(a){g.rO.prototype.Nf.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.v(MO,g.uM);MO.prototype.Kf=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.To[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.zi(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; MO.prototype.rh=function(a,b){this.ea("settingChange",a,b)};g.v(NO,g.rO);NO.prototype.getKey=function(a){return a.languageCode}; NO.prototype.Dj=function(a){return this.languages[a].languageName||""}; NO.prototype.Nf=function(a){this.ea("select",a);this.I.wb(this.element);g.FM(this.rb)};g.v(OO,g.rO);g.h=OO.prototype;g.h.getKey=function(a){return g.bg(a)?"__off__":a.displayName}; g.h.Dj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName}; g.h.Nf=function(a){"__translate__"===a?this.j.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.iK(this.I.V(),this.I.getVideoData()),g.rJ(a)):(this.I.wb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.rO.prototype.Nf.call(this,a),this.rb.yh())}; g.h.Ja=function(){var a=this.I.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.I.getVideoData();b=b&&b.Rp;var c,d=!(null==(c=this.I.getVideoData())||!g.wE(c));c={};if(a||b){if(a){var e=this.I.getOption("captions","track");c=this.I.getOption("captions","tracklist",{includeAsr:!0});var f=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.uc(c,this.getKey,this);d=g.Kl(c,this.getKey);if(f.length&&!g.bg(e)){var k=e.translationLanguage;if(k&&k.languageName){var l=k.languageName; k=f.findIndex(function(m){return m.languageName===l}); taa(f,k)}uEa(this.j,f);d.push("__translate__")}f=this.getKey(e)}else this.tracks={},d=[],f="__off__";d.unshift("__off__");this.tracks.__off__={};b&&d.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=e,d.push(f));g.sO(this,d);this.zi(f);e&&e.translationLanguage?this.j.zi(this.j.getKey(e.translationLanguage)):nEa(this.j);a&&this.D.Kf(this.I.getSubtitlesUserSettings());this.K.Ad(c&&c.length?" ("+c.length+")":"");this.ea("size-change");this.I.Za(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.h.pS=function(a){var b=this.I.getOption("captions","track");b=g.gg(b);b.translationLanguage=this.j.languages[a];this.I.setOption("captions","track",b)}; g.h.rh=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}vEa(this,!0);this.J.start();this.D.Kf(this.I.getSubtitlesUserSettings())}; g.h.BY=function(a){a||g.qp(this.J)}; g.h.qa=function(){g.qp(this.J);g.rO.prototype.qa.call(this)};g.v(PO,g.DM);g.h=PO.prototype;g.h.initialize=function(){if(!this.isInitialized){this.isInitialized=!0;this.iG=new wO(this.I,this);g.H(this,this.iG);var a=new AO(this.I,this);g.H(this,a);a=new OO(this.I,this);g.H(this,a);this.I.V().C||(a=new qO(this.I,this),g.H(this,a));this.I.V().Cc&&(a=new JO(this.I,this),g.H(this,a));this.I.V().Ub&&!this.I.V().S("web_player_move_autonav_toggle")&&(a=new uO(this.I,this),g.H(this,a));a=new tO(this.I,this);g.H(this,a);pO(this.settingsButton,this.Vc.items.length)}}; g.h.wc=function(a){this.initialize();this.Vc.wc(a);pO(this.settingsButton,this.Vc.items.length)}; g.h.kf=function(a){this.tb&&1>=this.Vc.items.length&&this.hide();this.Vc.kf(a);pO(this.settingsButton,this.Vc.items.length)}; g.h.od=function(a){this.initialize();0=b;g.gI(this,c);this.I.Za(this.element,c);a&&this.La("pressed",this.isEnabled())};g.v(g.TO,g.W);g.h=g.TO.prototype; g.h.Pb=function(){var a=this.api.bb().getPlayerSize().width,b=this.K;this.api.V().J&&(b=400);b=a>=b&&(!VO(this)||!g.V(this.api.yb(),64));g.gI(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().S("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);UO(this)&&(c-=this.Tb.startTimeMs/1E3);c=g.fJ(c);this.B!==c&&(this.La("currenttime",c),this.B=c);b=UO(this)? g.fJ((this.Tb.endTimeMs-this.Tb.startTimeMs)/1E3):g.fJ(this.api.V().S("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.La("duration",b),this.C=b)}a=a.isAtLiveHead;!VO(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Pb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Ad(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.jM(this.tooltip, this.liveBadge.element)));a=this.api.getLoopRange();b=this.Tb!==a;this.Tb=a;b&&SO(this)}; g.h.onLoopRangeChange=function(a){var b=this.Tb!==a;this.Tb=a;b&&(this.Pb(),SO(this))}; g.h.hZ=function(){this.api.setLoopRange(null)}; g.h.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().S("enable_topsoil_wta_for_halftime")||this.api.V().S("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Pb();SO(this)}; g.h.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.ob;this.u=zE(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",VO(this))}; g.h.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.h.qa=function(){this.j&&this.j();g.W.prototype.qa.call(this)};g.v(YO,g.W);g.h=YO.prototype;g.h.Sm=function(){var a=this.j.bf();this.C!==a&&(this.C=a,XO(this,this.api.getVolume(),this.api.isMuted()))}; g.h.PJ=function(a){g.gI(this,350<=a.width)}; g.h.sS=function(a){if(!g.pu(a)){var b=g.qu(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.xh(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.ou(a))}}; g.h.qS=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.xh(b/10,-10,10));g.ou(a)}; g.h.GY=function(){WO(this,this.u,!0,this.B,this.j.Oi());this.X=this.volume;this.api.isMuted()&&this.api.unMute()}; g.h.rS=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Lm(this.N).x;this.api.setVolume(100*g.xh((a-c/2)/(b-c),0,1))}; g.h.FY=function(){WO(this,this.u,!1,this.B,this.j.Oi());0===this.volume&&(this.api.mute(),this.api.setVolume(this.X))}; g.h.onVolumeChange=function(a){XO(this,a.volume,a.muted)}; g.h.AL=function(){WO(this,this.u,this.isDragging,this.B,this.j.Oi())}; g.h.qa=function(){g.W.prototype.qa.call(this);g.wp(this.K,"ytp-volume-slider-active")};g.v(g.ZO,g.W);g.ZO.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.gI(this,this.visible);this.api.Za(this.element,this.visible&&this.ra);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.La("url",a))}; g.ZO.prototype.onClick=function(a){var b=this.api.V(),c=this.api.getVideoUrl(!g.gJ(a),!1,!0,!0);if(g.kC(b)||g.vC(b)){var d={};b.ma&&g.kC(b)&&g.kK(d,b.loaderUrl);c=g.cj(c,g.jK(d,"emb_logo"))}g.JL(c,this.api,a);this.api.wb(this.element)}; g.ZO.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Ib:!0,L:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}; if(g.vC(this.api.V())){var b=this.Ca("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18", cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z", fill:"#fff"}}]};g.O(b,"ytp-youtube-music-logo-icon-only",c)}this.La("logoSvg",a)}; g.ZO.prototype.jc=function(a){g.W.prototype.jc.call(this,a);this.api.Za(this.element,this.visible&&a)};g.v($O,g.cA);g.h=$O.prototype;g.h.Fd=function(){this.Hc.Pb();this.Rg.Pb()}; g.h.Yj=function(){this.pD();if(this.Id.u){this.Fd();var a;null==(a=this.N)||a.show()}else{g.iP(this.Hc.tooltip);var b;null==(b=this.N)||b.hide()}}; g.h.Uq=function(){this.Fd();this.Yd.start()}; g.h.pD=function(){var a=!this.I.V().isMobile&&300>g.mEa(this.Hc)&&this.I.yb().Ic()&&!!window.requestAnimationFrame,b=!a;this.Id.u||(a=b=!1);b?this.K||(this.K=this.T(this.I,"progresssync",this.Fd)):this.K&&(this.vc(this.K),this.K=null);a?this.Yd.isActive()||this.Yd.start():this.Yd.stop()}; g.h.xb=function(){var a=this.B.bf(),b=this.I.bb().getPlayerSize(),c=aP(this),d=Math.max(b.width-2*c,100);if(this.Ra!==b.width||this.Ia!==a){this.Ra=b.width;this.Ia=a;var e=AEa(this);this.u.element.style.width=e+"px";this.u.element.style.left=c+"px";g.eO(this.Hc,c,e,a);this.B.lc().qD=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-bP(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.nz=e;c.Ou();this.pD();!this.I.V().S("html5_player_bottom_linear_gradient")&&this.I.V().S("html5_player_dynamic_bottom_gradient")&& g.lN(this.Pa,b.height)}; g.h.onVideoDataChange=function(){var a=this.I.getVideoData();this.va.style.background=a.D?a.Va:"";g.gI(this.Z,a.HD)};g.v(cP,fN);g.h=cP.prototype;g.h.FG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Na("innertubeCommand",this.onClickCommand),this.B=!0,this.N.hide())}; g.h.GG=function(){this.B=!0;this.N.hide()}; g.h.onVideoDataChange=function(a,b){"newdata"===a&&(this.u=this.B=!1,dP(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.j=this.K=this.enabled=!0;this.text=(b=a.title)?g.Jw(b):"View Chapters";var c;if(b=null==(c=a.trigger)?void 0:c.suggestedActionTimeRangeTrigger){c=[];var d=b.timeRangeStartMillis;b=b.timeRangeEndMillis;null!=d&&null!=b&&c.push(new g.Cw(d,b,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Qd(c)}this.onClickCommand=a.tapCommand;yDa(this);eN(this); this.ri()}}; g.h.By=function(){return!this.B&&this.enabled&&(this.u||this.j)}; g.h.Ne=function(a){this.B||((this.u=a)?dN(this):(dP(this),this.Z.start()),this.ri())}; g.h.qa=function(){dP(this);fN.prototype.qa.call(this)};var G0={},eP=(G0.CHANNEL_NAME="ytp-title-channel-name",G0.CHANNEL_LOGO="ytp-title-channel-logo",G0.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",G0.LINK="ytp-title-link",G0.SESSIONLINK="yt-uix-sessionlink",G0.SUBTEXT="ytp-title-subtext",G0.TEXT="ytp-title-text",G0.TITLE="ytp-title",G0);g.v(fP,g.W); fP.prototype.onClick=function(a){this.api.wb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.gJ(a),!1,!0);if(g.kC(b)){var d={};b.ma&&g.kK(d,b.loaderUrl);c=g.cj(c,g.jK(d,"emb_title"))}g.JL(c,this.api,a)}; fP.prototype.Ja=function(){var a=this.api.getVideoData(),b=this.api.V();this.La("title",a.title);BEa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.Kb&&c.profilePicture?(this.La("channelLink",c.Kb),this.La("channelName",c.author),this.La("channelTitleFocusable","0")):BEa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.ub;g.O(this.link,eP.FULLERSCREEN_LINK,c);b.N||!a.videoId||c||a.D&&b.pfpChazalUi||b.C?this.j&&(this.La("url", null),this.vc(this.j),this.j=null):(this.La("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(b=g.kC(b)?a.expandedTitle:a.author,this.La("channelName",b),this.La("channelLogoLabel",g.HF("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),this.La("channelLogoUrl",a.profilePicture))};g.v(g.gP,g.W);g.h=g.gP.prototype;g.h.uO=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,DEa(this,a))}; g.h.IV=function(){Zva(this.j,this.B,160*this.scale)}; g.h.Ek=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.X);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.X);a.addEventListener("focus",this.C);GEa(this);break;case 3:GEa(this);break;case 1:this.j&&(this.j.unsubscribe("l",this.uO,this),this.j=null),this.api.removeEventListener("videoready",this.Z),this.ma.stop()}this.type=null;this.K&&this.D.hide()}; g.h.Ej=function(){if(this.u)for(var a=0;a(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; g.h.Yj=function(a){a&&(this.tooltip.Ej(this.gi.element),this.Lf&&this.tooltip.Ej(this.Lf.u.element));this.QA&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.ZL.prototype.Yj.call(this,a)}; g.h.EG=function(){g.ZL.prototype.EG.call(this);this.QA&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.QA&&(this.contextMenu.hide(),this.rg&&this.rg.hide()))}; g.h.Lj=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.Am(0,0,c.width,c.height);if(a||this.Id.u&&!this.qp()){if(this.api.V().Ak||b)a=this.bf()?this.wE:this.vE,c.top+=a,c.height-=a;this.Lf&&(c.height-=bP(this.Lf))}return c}; g.h.Sm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.jA.element,b),b.parentElement.insertBefore(this.iA.element,b.nextSibling))):g.br(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.jA.detach(),this.iA.detach());this.xb();this.un()}; g.h.bf=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.J||!1}; g.h.showControls=function(a){this.Vz=!a;this.rj()}; g.h.xb=function(){var a=this.bf();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.rj();if(this.Ef()&&this.rg)this.Dh&&UM(this.rg,this.Dh),this.shareButton&&UM(this.rg,this.shareButton),this.yg&&UM(this.rg,this.yg);else{if(this.rg){a=this.rg;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.Dh&&!g.di(this.Sg.element,this.Dh.element)&&this.Dh.Ba(this.Sg.element);this.shareButton&&!g.di(this.Sg.element, this.shareButton.element)&&this.shareButton.Ba(this.Sg.element);this.yg&&!g.di(this.Sg.element,this.yg.element)&&this.yg.Ba(this.Sg.element)}this.un();g.ZL.prototype.xb.call(this)}; g.h.lF=function(){if(LEa(this)&&!g.UK(this.api))return!1;var a=this.api.getVideoData();return!g.kC(this.api.V())||2===this.api.getPresentingPlayerType()||!this.Ag||((a=this.Ag||a.Ag)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.ZL.prototype.lF.call(this):!1}; g.h.un=function(){g.ZL.prototype.un.call(this);this.api.Za(this.title.element,!!this.zl);this.Zt&&this.Zt.jc(!!this.zl);this.channelAvatar.jc(!!this.zl);this.overflowButton&&this.overflowButton.jc(this.Ef()&&!!this.zl);this.shareButton&&this.shareButton.jc(!this.Ef()&&!!this.zl);this.Dh&&this.Dh.jc(!this.Ef()&&!!this.zl);this.yg&&this.yg.jc(!this.Ef()&&!!this.zl);if(!this.zl){this.tooltip.Ej(this.gi.element);for(var a=0;a=a)){var b=this.j.values();a={};b=g.r(b);for(var c=b.next();!c.done;a={Cp:a.Cp},c=b.next()){a.Cp=c.value;c="https://"+Wx(a.Cp.location)+"/initplayback?c="+zC(this.Y)+"&owc=1";var d=function(e){return function(f){e.Cp.end();f.ht=e.Cp.TM;e.Cp.HV=f}}(a); a.Cp.start();nP(c,"pw",d)}}}; tP.prototype.start=function(){this.startTimestamp=(0,g.R)()}; tP.prototype.end=function(){this.endTimestamp=(0,g.R)()};var vP=[],xMa=!1;g.dT=Lg(function(){var a="";try{var b=g.Yh("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.v(g.wP,gH);g.h=g.wP.prototype;g.h.isView=function(){return!0}; g.h.DH=function(){var a=this.mediaElement.getCurrentTime();if(ae?this.Xe("next_player_future"):(this.D=d,this.B=kta(a,c,d,!0),this.C=kta(a,e,k,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.ya("gaplessPrep",{cpn:a}),BP(this.j,this.B),this.j.setMediaElement(ZEa(b,c,d,!this.j.getVideoData().isAd())), AP(this,2),eFa(this))):this.Qa():this.Qa()}else this.Xe("no-elem")}else this.Qa()}; g.h.us=function(a){var b=dFa(this).RP,c=a===b;b=c?this.B.j:this.B.u;c=c?this.C.j:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;nA(a.yf(),d-.01)&&(AP(this,4),b.isActive=!1,b.Ty=b.Ty||b.isActive,this.u.ya("sbh",{}),c.isActive=!0,c.Ty=c.Ty||c.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&AP(this,5)}}; g.h.AO=function(){4<=this.status.status&&6>this.status.status&&this.Xe("player-reload-after-handoff")}; g.h.Xe=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&!this.isFinished()){this.Qa();var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Gd(new g.YC("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.pk,msg:a})));a=this.j;a.videoData.Da=!1;c&&OS(a);a.Ua&&bIa(a.Ua)}this.Ml.reject(void 0);this.dispose()}}; g.h.qa=function(){cFa(this);this.j.unsubscribe("newelementrequired",this.AO,this);if(this.B){var a=this.B.u;this.B.j.Hd.unsubscribe("updateend",this.us,this);a.Hd.unsubscribe("updateend",this.us,this)}g.G.prototype.qa.call(this)}; g.h.Sc=function(a){g.rF(a,128)&&this.Xe("player-error-event")}; g.h.Qa=function(){};g.v(DP,g.G);DP.prototype.clearQueue=function(){this.Qa();this.C&&this.C.reject("Queue cleared");EP(this)}; DP.prototype.Kt=function(){return!this.j}; DP.prototype.qa=function(){EP(this);g.G.prototype.qa.call(this)}; DP.prototype.Qa=function(){};g.v(JP,g.cv);g.h=JP.prototype;g.h.getVisibilityState=function(a,b,c,d,e,f){return a?4:iFa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.h.ij=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ne())}; g.h.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ne())}; g.h.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ne())}; g.h.yu=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ne())}; g.h.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ne())}; g.h.Cf=function(){return this.j}; g.h.isFullscreen=function(){return 0!==this.fullscreen}; g.h.kt=function(){return this.fullscreen}; g.h.Se=function(){return this.B}; g.h.isInline=function(){return this.inline}; g.h.isBackground=function(){return iFa()}; g.h.It=function(){return this.pictureInPicture}; g.h.Et=function(){return this.u}; g.h.Ne=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.Cf(),this.isFullscreen(),this.Se(),this.isInline(),this.It(),this.Et());a!==this.D&&this.ea("visibilitystatechange");this.D=a}; g.h.qa=function(){lFa(this.C);g.cv.prototype.qa.call(this)};g.v(g.NP,g.G);g.h=g.NP.prototype; g.h.onCueRangeEnter=function(a){this.Pa.push(a);var b=a.getId(),c=""===b;this.Va.add(a.u);c||this.Aa.ya("sdai",{enterAdCueRange:1});if(this.Wa){this.Wa=!1;if(!c){var d=this.u.get(b);d&&(this.Y.S("web_player_ss_record_join_mid_ad_break_killswitch")||(c=this.Aa.getCurrentTime(),TP(this,{Cd:a,isAd:!0,Gm:!0,vf:c,adCpn:b},{isAd:!1,Gm:!1,vf:c})),this.api.ea("serverstitchedvideochange",d.Bc,d.Fn),a=QP(this,"midab",d),this.Aa.ya("sdai",a),this.Ii=1)}this.C=!1}else if(this.j){if(this.j.Gm)this.Aa.ya("sdai",{a_pair_of_same_transition_occurs_enter:1, acpn:this.j.adCpn,transitionTime:this.j.vf,cpn:b,currentTime:this.Aa.getCurrentTime()}),this.Y.S("web_player_same_transition_fallback_killswitch")||(d=this.Aa.getCurrentTime(),a={Cd:a,isAd:!c,Gm:!0,vf:d,adCpn:b},b={Cd:this.j.Cd,isAd:this.j.isAd,Gm:!1,vf:d,adCpn:this.j.adCpn},this.j.Cd&&this.Va.delete(this.j.Cd.u),TP(this,a,b));else{if(this.j.Cd===a){this.Aa.ya("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.vf,cpn:b,currentTime:this.Aa.getCurrentTime()});this.j=void 0; return}if(this.j.adCpn===b){b&&this.Aa.ya("sdai",{dchtsc:b});this.j=void 0;return}a={Cd:a,isAd:!c,Gm:!0,vf:this.Aa.getCurrentTime(),adCpn:b};TP(this,a,this.j)}this.j=void 0;this.C=!1}else this.j={Cd:a,isAd:!c,Gm:!0,vf:this.Aa.getCurrentTime(),adCpn:b}}; g.h.onCueRangeExit=function(a){if(this.Y.S("web_player_same_transition_fallback_killswitch")||this.Va.has(a.u)){this.Va.delete(a.u);this.Pa=this.Pa.filter(function(d){return d!==a}); this.Wa&&(this.C=this.Wa=!1,this.Aa.ya("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Gm){if(this.j.Cd===a){this.Aa.ya("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.vf,cpn:b,currentTime:this.Aa.getCurrentTime()});this.j=void 0;return}if(this.j.adCpn===b){b&&this.Aa.ya("sdai",{dchtsc:b});this.j=void 0;return}c={Cd:a,isAd:!c,Gm:!1,vf:this.Aa.getCurrentTime(),adCpn:b};TP(this,this.j,c)}else this.Aa.ya("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn, transitionTime:this.j.vf,upcomingCpn:b,contentCpn:this.Aa.getVideoData().clientPlaybackNonce,currentTime:this.Aa.getCurrentTime()});this.j=void 0;this.C=!1}else this.j={Cd:a,isAd:!c,Gm:!1,vf:this.Aa.getCurrentTime(),adCpn:b};this.Y.S("web_player_halftime_dai")&&(b=this.u.get(b),this.isLiveNow&&b&&this.Aa.getCurrentTime()=a.cI&&k.set("skipsq",""+a.cI);(l=this.Aa.getVideoData().clientPlaybackNonce)&&k.set("cpn",l);m=[];a.Rk&&(m=xFa(this,a.Rk),0=b+f)b=a.end;else{if(k=!1,a?bthis.B;)(c=this.data.shift())&&nQ(this,c,!0);lQ(this)}; mQ.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(nQ(this,c,b),g.gc(this.data,function(d){return d.key===a}),lQ(this))}; mQ.prototype.qa=function(){var a=this;g.G.prototype.qa.call(this);this.data.forEach(function(b){nQ(a,b,!0)}); this.data=[]};g.oQ.prototype.info=function(){};g.v(pQ,g.G);pQ.prototype.qa=function(){PFa(this.j);g.G.prototype.qa.call(this)};g.v(qQ,g.Qp);qQ.prototype.ea=function(a){var b=g.Da.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.Qp.prototype.ea.call.apply(g.Qp.prototype.ea,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};rQ.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; rQ.prototype.forEach=function(a){for(var b=this.j+1;bc?(a=g.XA(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.Dh(b.width*a,b.height)):b}; g.h.getVideoAspectRatio=function(){return isNaN(this.uG)?XFa(this):this.uG}; g.h.getVideoContentRect=function(a){var b=this.Eg();a=YFa(this,b,this.getVideoAspectRatio(),a);return new g.Am((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.h.Bu=function(a){this.oH=a;this.resize()}; g.h.UA=function(){return this.MB}; g.h.onMutedAutoplayChange=function(){zQ(this)}; g.h.setInternalSize=function(a){g.Eh(this.Ew,a)||(this.Ew=a,this.resize())}; g.h.qa=function(){this.AE&&g.Du(this.AE);this.Ng();g.W.prototype.qa.call(this)};g.h=$Fa.prototype;g.h.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Fv();c&&a.visualElement&&g.Wv(c,a.visualElement,b)}; g.h.Ab=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Fpa(c);a.visualElement=c;var f=g.Fv(),k=g.Ev();f&&k&&g.Qv(void 0,f,k,[c]);g.Bf(b,function(){aGa(e,a)}); d&&this.u.add(a)}; g.h.Yg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.Bf(b,function(){aGa(d,a)}); c&&this.u.add(a)}; g.h.jk=function(a,b){this.elements.has(a);b&&(a.visualElement=g.uv(b))}; g.h.Io=function(a){return this.elements.has(a)};g.v(EQ,g.W); EQ.prototype.setValue=function(a,b){for(var c=0;c+2this.policy.N&&(null==(c=this.u)?0:Zz(c.info))&&(null==(d=this.nextVideo)||!Zz(d.info))&&(this.N=!0)}};aR.prototype.dispose=function(){this.ma=!0}; aR.prototype.isDisposed=function(){return this.ma};iR.prototype.skip=function(a){this.offset+=a}; iR.prototype.getOffset=function(){return this.offset};lR.prototype.Yh=function(a){this.Ia=this.u.shift().info;a.info.equals(this.Ia)}; lR.prototype.No=function(){return!!this.J.info.audio}; lR.prototype.getDuration=function(){return this.J.index.getMaxKnownEndTime()};g.h=uR.prototype;g.h.gF=function(){return 0}; g.h.QJ=function(){return null}; g.h.pM=function(){return null}; g.h.isComplete=function(){return 3<=this.state}; g.h.isFailed=function(){return 5===this.state}; g.h.onStateChange=function(){}; g.h.isDisposed=function(){return-1===this.state}; g.h.dispose=function(){this.info.j[0].j.J=!1;vR(this,-1)}; g.h.sF=function(){return 0};g.v(yR,uR);g.h=yR.prototype;g.h.onStateChange=function(){this.isDisposed()&&(PT(this.Sd,this.u),this.B.dispose())}; g.h.qq=function(){var a=YHa(this.Sd,this.u),b;var c=(null==(b=this.Sd.Nd.get(this.u))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Sd.Nd.get(this.u))?void 0:d.Hz)||0;var e;d=(null==(e=this.Sd.Nd.get(this.u))?void 0:e.pe.totalLength)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:d,isEnded:this.Sd.Tf(this.u)}}; g.h.mM=function(){return 0}; g.h.Av=function(){return!0}; g.h.rD=function(){this.Go();this.N=!0;return jHa(this.j)}; g.h.RJ=function(){this.Go();return this.j.pe}; g.h.au=function(){var a,b;return!!(null==(a=this.j)?0:null==(b=a.pe)?0:b.length)||this.Sd.og(this.u)}; g.h.Go=function(){for(;this.Sd.og(this.u);){var a=this.j,b=this.Sd.Yh(this.u),c=this.Sd.Nd.get(this.u);iHa(a,b,c.cf&&!c.pe.totalLength&&lHa(this.Sd,this.u))}};zR.prototype.Hf=function(){return UGa(this.C)}; zR.prototype.Yh=function(a){this.C.Yh(a);a=a.info;var b=a.j.info.Nb;this.policy.Sv&&a.Zd&&a.duration&&(b=Math.max(b,(a.zb+a.u)/a.duration));this.Nb=Math.max(this.Nb,b||0)}; zR.prototype.getDuration=function(){return this.j.index.getMaxKnownEndTime()}; zR.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.j[0].Ma:!1};g.h=MR.prototype;g.h.Ut=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Vt()}; g.h.onError=function(){this.C=!0;this.onDone()}; g.h.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.fp())}; g.h.Aq=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.h.Iw=function(){return+this.getResponseHeader("content-length")}; g.h.Kj=function(){return this.B}; g.h.Zx=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.h.og=function(){return 0a-this.C&&RR(this)||EHa(this,a,b);this.callbacks.Wq(a,b)}; g.h.fp=function(){this.callbacks.fp()}; g.h.deactivate=function(){this.isActive&&(this.isActive=!1)}; g.h.now=function(){return(0,g.R)()};g.h=VR.prototype;g.h.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.X);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.ma,this.onError).then(void 0,ws)}; g.h.onDone=function(){this.isDisposed()||this.callbacks.fp()}; g.h.getResponseHeader=function(a){return this.D?this.D.get(a):null}; g.h.Aq=function(){return!!this.D}; g.h.Kj=function(){return this.u}; g.h.Iw=function(){return+this.getResponseHeader("content-length")}; g.h.Zx=function(){return 200<=this.status&&300>this.status&&!!this.u}; g.h.og=function(){return!!this.j.totalLength}; g.h.Yh=function(){this.og();var a=this.j;this.j=new cy;return a}; g.h.Hf=function(){this.og();return this.j}; g.h.isDisposed=function(){return this.J}; g.h.abort=function(){this.Gl&&this.Gl.cancel().catch(function(){}); this.B&&this.B.abort();this.J=!0}; g.h.Fu=function(){return!0}; g.h.UB=function(){return this.K}; g.h.Ge=function(){return this.errorMessage};g.h=WR.prototype;g.h.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.fp()}}; g.h.Ut=function(){2===this.xhr.readyState&&this.callbacks.Vt()}; g.h.Fd=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.Wq((0,g.R)(),a.loaded))}; g.h.Aq=function(){return 2<=this.xhr.readyState}; g.h.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return dr(Error("Could not read XHR header "+a)),""}}; g.h.Iw=function(){return+this.getResponseHeader("content-length")}; g.h.Kj=function(){return this.u}; g.h.Zx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u}; g.h.og=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.h.Yh=function(){this.og();var a=this.response;this.response=void 0;return new cy([new Uint8Array(a)])}; g.h.Hf=function(){this.og();return new cy([new Uint8Array(this.response)])}; g.h.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.h.Fu=function(){return!1}; g.h.UB=function(){return!1}; g.h.Ge=function(){return""};g.v($R,uR);g.h=$R.prototype;g.h.qq=function(){var a=OR(this.timing);a.shost=Wx(this.u.Jh);this.B&&(a.rc=this.B.toString());a.itag=this.info.j[0].j.info.Yb();a.ml=""+ +this.info.j[0].j.df();a.sq=""+this.info.j[0].Ma;this.u&&(a.ifi=""+ +Yx(this.info.u.C));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.Ge()&&(a.msg=this.xhr.Ge());this.Fy&&(a.smb="1");if(this.j){var b=this.j.pe;b.length&&Rsa(b[0],a)}this.info.Hj()&&(a.sdai="1");return a}; g.h.mM=function(){return IHa(this.timing)}; g.h.Ge=function(){return this.xhr.Ge()||""}; g.h.Av=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.EB&&SR(a,a.u));return a}; g.h.Wq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.au()?wR(this,2):!this.va&&this.Av()&&(wR(this),this.va=!0))}; g.h.Vt=function(){if(!this.isDisposed()&&this.xhr){if(!this.Z&&this.xhr.Aq()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Z=((0,g.R)()-a)/1E3}this.xhr.Aq()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Ir&&!Sta()&&g.$v("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.J=a||this.J;this.K=b||this.K}}; g.h.fp=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.X.stop(),this.B=a.status,a=NHa(this,a),5===a?ZR(this):vR(this,a))}; g.h.canRetry=function(){this.isDisposed();var a=YR(this),b=this.info.Hj()?this.policy.Hr:this.policy.yj;return a.timedOut=.8*this.ra?(this.C++,b=5<=this.C):this.C=0):(b=this.timing,b.ph&&UR(b,b.now()),a-=b.N,this.policy.Kb&&01E3*b);this.C&&this.callback&&this.callback(this,this.state);b?OHa(this,!1):this.X.start()}}; g.h.dispose=function(){uR.prototype.dispose.call(this);this.X.dispose();this.policy.Pd||aS(this)}; g.h.rD=function(){if(!this.RJ().length)return[];this.N=!0;return jHa(this.j)}; g.h.au=function(){if(1>this.state)return!1;if(this.j&&this.j.pe.length)return!0;var a;return(null==(a=this.xhr)?0:a.og())?!0:!1}; g.h.RJ=function(){this.Go(!1);return this.j?this.j.pe:[]}; g.h.Go=function(a){if(a||this.xhr.Aq()&&this.xhr.og()&&!MHa(this)&&!this.D){if(!this.j){if(this.xhr.Fu())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Kj();this.j=new hHa(this.info.j,b)}for(;this.xhr.og();)iHa(this.j,this.xhr.Yh(),a&&!this.xhr.og())}}; g.h.Kj=function(){return this.xhr.Kj()}; g.h.gF=function(){return this.Z}; g.h.oo=function(){return PHa(this)?2:1}; g.h.sF=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.h.QJ=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J}; g.h.pM=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};bS.prototype.clear=function(){this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1}; bS.prototype.Qa=function(){};g.v(g.dS,g.G);g.h=g.dS.prototype; g.h.initialize=function(a,b,c){a=a||0;this.Aa.uB(CGa(this.u));if(this.j.isManifestless){if(this.policy.Qh){b=Gra(this.policy);for(var d in this.j.j)this.j.j.hasOwnProperty(d)&&(this.j.j[d].index.C=b)}$Ha(this)}this.D&&RHa(this.D,this.videoTrack.j);this.policy.Ia&&zx()&&this.ya("streaming",{ac:!!window.AbortController||Ax()},!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.j.isManifestless?d:a;this.X&&(ZHa(this,this.videoTrack),ZHa(this,this.audioTrack),OKa(this.X),delete this.X); c?(this.policy.Zc?(this.ob=c,iS(this,c)):iS(this,!1),g.op(this.Pa)):(a=0===this.currentTime,eS(this,this.videoTrack,this.videoTrack.j,a),eS(this,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime).Bh(function(){}),this.timing.tick("gv")); (this.j.Ie||this.j.Hg||this.j.D||this.j.C||this.j.J)&&this.ya("minMaxSq",{minSq:this.j.Ie,maxSq:this.j.Hg,minDvrTime:this.j.D,maxDvrTime:this.j.C,startWalltime:this.j.J})}; g.h.resume=function(){if(this.isSuspended||this.va){this.Wa=this.va=this.isSuspended=!1;try{this.Gh()}catch(a){g.S(a)}}}; g.h.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.B=b.C.j[a.id];b.K=b.B;a=new TQ(b.K,b.u,"m");rS(this.Aa,a.reason,a.audio.info);sS(this.Aa)}}; g.h.setPlaybackRate=function(a){a!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(a)}; g.h.zq=function(a){var b=a.info.j[0].j,c=a.lastError;if(Xx(b.u.j)){var d=g.Ic(a.Ge());this.ya("dldbrerr",{em:d||"none"})}d=a.info.j[0].Ma;var e=pGa(this.B,a.info.j[0].B,d);if(a.canRetry()){if(!(a.info.u.u>=this.policy.Hr&&this.C&&a.info.Hj()&&"net.badstatus"===a.lastError&&this.C.zq(e,d))){d=(b.info.video&&1b&&c.u.pop();a.B.length?a.u=g.Xb(g.Xb(a.B).info.j):a.C.u.length?a.u=mR(a.C).info:a.u=BR(a);a.u&&bb||b!==d)&&this.ya("sbu_mismatch",{b:lA(a),c:this.currentTime,s:lz(c)})}}this.Gh()}; g.h.GW=function(a){if(this.mediaSource){var b=BR(a===this.mediaSource.j?this.audioTrack:this.videoTrack);if(a=a.qF())for(var c=0;c=c||cthis.B&&(this.B=c,g.bg(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.op(this.u))}}; xS.prototype.D=function(){for(var a=g.r(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.j[c].match(Vi),f=[],k=g.r(e[6].split("&")),l=k.next();!l.done;l=k.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Gh(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e=a.size||(a.forEach(function(c,d){var e=TA(b.u)?d:c;d=new Uint8Array(TA(b.u)?c:d);TA(b.u)&&NIa(d);c=g.Hc(d,4);NIa(d);d=g.Hc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),this.Qa("Key statuses changed: "+KIa(this,",")),zS(this,{onkeystatuschange:1}),this.status="kc",this.ea("keystatuseschange",this))}; g.h.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",{et:a.toFixed(3)})));ZC(b)&&this.dispose()}; g.h.shouldRetry=function(a,b){return this.xa&&this.K?!1:!a&&this.requestNumber===b.requestNumber}; g.h.qa=function(){this.j={};g.cv.prototype.qa.call(this)}; g.h.Mb=function(){var a={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.va,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a}; g.h.zf=function(){var a=this.D.join();if(BS(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.h.Qa=function(){};g.v(DS,g.G);g.h=DS.prototype;g.h.vS=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; g.h.bp=function(){this.K&&this.K(this.j.keyStatuses)}; g.h.IO=function(a){this.D&&this.D(a.message,"license-request")}; g.h.HO=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.h.GO=function(){this.J&&this.J()}; g.h.update=function(a){var b=this;if(this.j)return this.j.update(a).then(null,cr(function(c){RIa(b,"t.update",c)})); this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.N.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,a,this.initData,this.sessionId);return Gr()}; g.h.qa=function(){this.j&&this.j.close();this.element=null;g.G.prototype.qa.call(this)};g.v(ES,g.G);g.h=ES.prototype;g.h.attach=function(){var a=this;if(this.j.keySystemAccess)return this.j.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))}); SA(this.j)?this.B=new (RA())(this.j.keySystem):UA(this.j)?(this.B=new (RA())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(av(this.D,this.element,["keymessage","webkitkeymessage"],this.yS),av(this.D,this.element,["keyerror","webkitkeyerror"],this.xS),av(this.D,this.element,["keyadded","webkitkeyadded"],this.wS));return null}; g.h.setServerCertificate=function(){return"widevine"===this.j.flavor&&this.j.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.j.B):null}; g.h.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();VA(this.j)&&(c=SIa(c,this.j.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new DS(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},cr(function(f){RIa(e,"t.generateRequest",f)})); return e}if(SA(this.j))return UIa(this,c);if(UA(this.j))return TIa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new DS(this.element,this.j,c,null,null)}; g.h.yS=function(a){var b=GS(this,a);b&&b.IO(a)}; g.h.xS=function(a){var b=GS(this,a);b&&b.HO(a)}; g.h.wS=function(a){var b=GS(this,a);b&&b.GO(a)}; g.h.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; g.h.qa=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.r(Object.values(this.J));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.J={};g.G.prototype.qa.call(this);delete this.element};g.v(HS,g.G); HS.prototype.init=function(){var a=this,b,c;return g.B(function(d){if(1==d.j)return g.Dm(a.j,{position:"absolute",width:"1px",height:"1px",display:"block"}),a.j.src=a.B.D,document.body.appendChild(a.j),a.C.T(a.j,"encrypted",a.J),b=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(d,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",b),2);c=d.u;a.B.keySystemAccess=c;a.u=new ES(a.j, a.B);g.H(a,a.u);a.u.attach();g.ua(d)})}; HS.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new fR(c,a.initDataType);var d=rIa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.Qa()}); f&&(g.H(this,f),this.D.push(f),BIa(f,function(k){PIa(k,f.j,d,e)},function(){b.Qa()},function(){},function(){}))}}; HS.prototype.Qa=function(){}; HS.prototype.qa=function(){this.D=[];this.j&&this.j.parentNode&&this.j.parentNode.removeChild(this.j);g.G.prototype.qa.call(this)};g.v(IS,wS); IS.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe",{wvagt:"delay."+ c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});this.C&&0>=c?VIa(this,a):(this.j.push({time:b+c,info:a}),g.op(this.u,c))}}; IS.prototype.qa=function(){this.j=[];wS.prototype.qa.call(this)};JS.prototype.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; JS.prototype.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; JS.prototype.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; JS.prototype.findIndex=function(a){return g.$b(this.keys,function(b){return g.rc(a,b)})};g.v(LS,g.cv);g.h=LS.prototype;g.h.zS=function(a){this.Ug({onecpt:1});a.initData&&$Ia(this,new Uint8Array(a.initData),a.initDataType)}; g.h.GX=function(a){this.Ug({onndky:1});$Ia(this,a.initData,a.contentType)}; g.h.Tt=function(a){this.Ug({onneedkeyinfo:1});this.Y.S("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));ZIa(this,a)}; g.h.bL=function(a){this.B.push(a);MS(this)}; g.h.createSession=function(a){var b=aJa(this)?QGa(a):g.Hc(a.initData);this.u.get(b);this.ra=!0;a=new AS(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.jO,this);a.subscribe("keystatuseschange",this.bp,this);a.subscribe("licenseerror",this.tB,this);a.subscribe("newlicense",this.CO,this);a.subscribe("newsession",this.DO,this);a.subscribe("sessionready",this.PO,this);a.subscribe("fairplay_next_need_key_info",this.tO,this);DIa(a,this.C)}; g.h.CO=function(a){this.isDisposed()||(this.Qa(),this.Ug({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))}; g.h.DO=function(){this.isDisposed()||(this.Qa(),this.Ug({newlcssn:1}),this.B.shift(),this.ra=!1,MS(this))}; g.h.PO=function(){if(SA(this.j)&&(this.Qa(),this.Ug({onsnrdy:1}),this.Da--,0===this.Da)){var a=this.Z;a.element.msSetMediaKeys(a.B)}}; g.h.bp=function(a){if(!this.isDisposed()){!this.xa&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(bJa(this),this.xa=!0);this.Qa();this.Ug({onksch:1});if(!BS(a)&&g.ht&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(BS(a))for(var d=g.r(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.j[e].status&&b.push(a.j[e].type),"unknown"!==a.j[e].status&&(c=!1);if(!BS(a)||c)b=a.D;b=g.bc(b,"UHD2")||g.bc(b,"UHD2HDR")? "highres":g.bc(b,"UHD1")||g.bc(b,"UHD1HDR")?"hd2160":g.bc(b,"HD")||g.bc(b,"HDHDR")?"hd1080":g.bc(b,"HD720")||g.bc(b,"HD720HDR")?"hd720":"large"}a:{c=g.Ex("auto",b,!1,"l");if(this.videoData.eg){if(this.N.equals(c))break a}else if(ura(this.N,b))break a;this.N=c;this.ea("qualitychange");this.Qa();this.Ug({updtlq:b})}this.ea("keystatuseschange",a)}}; g.h.jO=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)}; g.h.tO=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)}; g.h.tB=function(a,b,c,d){this.isDisposed()||(this.videoData.S("html5_log_drm_metrics_on_error")&&bJa(this),this.ea("licenseerror",a,b,c,d))}; g.h.ot=function(){return this.N}; g.h.qa=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.jO,this),b.unsubscribe("keystatuseschange",this.bp,this),b.unsubscribe("licenseerror",this.tB,this),b.unsubscribe("newlicense",this.CO,this),b.unsubscribe("newsession",this.DO,this),b.unsubscribe("sessionready",this.PO,this),b.unsubscribe("fairplay_next_need_key_info",this.tO,this),b.dispose(); this.u.clear();KS(this.J);KS(this.K);this.heartbeatParams=null;g.cv.prototype.qa.call(this)}; g.h.Mb=function(){for(var a={systemInfo:this.j.Mb(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Mb());return a}; g.h.zf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.zf()+(this.D?"/KR":"")}; g.h.Ug=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.Qa(XC(a)),(WC(this.Y)||b)&&this.ea("ctmp","drmlog",a))}; g.h.Qa=function(){};g.v(PS,g.G);PS.prototype.WA=function(){return this.B}; PS.prototype.handleError=function(a){var b=this;gJa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!RS(this,a.errorCode,a.details))&&!jJa(this,a))if(ZC(a.severity)){var c,d=null==(c=this.Aa.Ua)?void 0:c.u.j;if(hJa(this,a)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.j.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Aa.Wf(a.errorCode,a.severity,e,XC(a.details),f)}else this.Aa.ea("nonfatalerror", a),c=/^pp/.test(this.videoData.clientPlaybackNonce),this.Gd(a.errorCode,a.details),c&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20220328145930/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.R)(),nP(a,"manifest",function(k){b.J=!0;b.ya("pathprobe",k)},function(k){b.Gd(k.errorCode,k.details)}))}; PS.prototype.ya=function(a,b){this.Aa.Zb.ya(a,b)}; PS.prototype.Gd=function(a,b){b=XC(b);this.Aa.Zb.Gd(a,b)};SS.prototype.setPlaybackRate=function(a){this.playbackRate=a}; SS.prototype.S=function(a){return this.Y.S(a)};g.v(TS,g.G);TS.prototype.Sc=function(a){BJa(this);this.playerState=a.state;0<=this.B&&g.rF(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; TS.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(OTa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; TS.prototype.send=function(){if(!(this.C||0>this.u)){BJa(this);var a=g.GP(this.j)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=pMa[fE(this.j.videoData)];a:switch(this.j.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=0>this.B?a:this.B-this.u;a=this.j.Y.Bd+ 36E5<(0,g.R)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.j.videoData.isAd(),liveMode:c,hasDrm:!!g.dE(this.j.videoData),isGapless:this.j.videoData.Da,isServerStitchedDai:this.j.videoData.enableServerStitchedDai};a||g.xs("html5PlayerHealthEvent",b);this.j.S("html5_health_to_qoe")&& (b.muted=a,this.K(b));this.C=!0;this.dispose()}}; TS.prototype.qa=function(){this.C||this.send();g.G.prototype.qa.call(this)}; var OTa=/\bnet\b/;var DJa=window;var CJa=/[?&]cpn=/;g.v(g.ZS,g.G);g.h=g.ZS.prototype;g.h.XU=function(){var a=g.GP(this.j);$S(this,a)}; g.h.Nw=function(){return this.xa}; g.h.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.GP(this.j),-1<["PL","B","S"].indexOf(this.Ld)&&(!g.bg(this.u)||a>=this.C+30)&&(g.YS(this,a,"vps",[this.Ld]),this.C=a),!g.bg(this.u))){7E3===this.sequenceNumber&&g.Mv(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){aT(this,a);var b=a,c=this.j.Aa.Ww(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Xa,k=e&&!this.ob;d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.j.Aa.Ix(),this.u.qoealert=["1"],this.Ra=!0)}"B"!==a||"PL"!==this.Ld&&"PB"!==this.Ld||(this.ra=!0);this.C=c}"PL"===this.Ld&&("B"=== a||"S"===a)||WC(this.j.Y)?aT(this,c):$S(this,c);"PL"===a&&g.op(this.Cb);g.YS(this,c,"vps",[a]);this.Ld=a;this.C=this.Pa=c;this.D=!0}a=b.getData();g.V(b,128)&&a&&IJa(this,c,a.errorCode,a.RE,a.uH);(g.V(b,2)||g.V(b,128))&&this.reportStats(c);b.Ic()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);bT(this)}; g.h.Ox=function(a){var b=g.GP(this.j);g.YS(this,b,"vfs",[a.j.id,a.u,this.qb,a.reason]);this.qb=a.j.id;var c=this.j.Aa.getPlayerSize();if(0b-this.lastUpdateTime+2||QJa(this,a,b))){var d=this.j.Lh();c=d.volume;var e=c!==this.Z;d=d.muted;d!==this.X?(this.X=d,c=!0):(!e||0<=this.D||(this.Z=c,this.D=b),c=b-this.D,0<=this.D&&2=this.j.videoData.Fb;a&&(this.C&&this.j.videoData.Fb&&(a=mT(this,"delayplay"),a.Bd=!0,a.send(),this.Z=!0),VJa(this))}; g.h.Sc=function(a){this.isDisposed()||(g.V(a.state,2)?(this.currentPlayerState="paused",g.rF(a,2)&&this.C&&pT(this).send()):g.V(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&nT(this,!1)):this.currentPlayerState="paused")}; g.h.qa=function(){g.G.prototype.qa.call(this);g.tr(this.B);this.B=NaN;OJa(this.u)}; g.h.Mb=function(){return jT(mT(this,"playback"))}; g.h.Nu=function(){this.j.videoData.K.eventLabel=qE(this.j.videoData);this.j.videoData.K.playerStyle=this.j.Y.playerStyle;this.j.videoData.Ub&&(this.j.videoData.K.feature="pyv");this.j.videoData.K.vid=this.j.videoData.videoId;var a=this.j.videoData.K;var b=this.j.videoData;b=b.isAd()||!!b.Ub;a.isAd=b}; g.h.gh=function(a){var b=mT(this,"engage");b.X=a;return RJa(b,$Ja(this.j))};ZJa.prototype.isEmpty=function(){return this.endTime===this.startTime};rT.prototype.S=function(a){return this.Y.S(a)}; var aKa={other:1,none:2,wifi:3,cellular:7};g.v(g.sT,g.G);g.h=g.sT.prototype;g.h.Sc=function(a){if(g.rF(a,1024)||g.rF(a,512)||g.rF(a,4)){var b=this.C;0<=b.B||(b.u=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.J||(b.B=-1))}if(this.u.videoData.enableServerStitchedDai&&this.fg){var c;null==(c=this.B.get(this.fg))||c.Sc(a)}else this.j&&this.j.Sc(a);this.qoe&&this.qoe.Sc(a);this.C.Sc(a)}; g.h.Fd=function(){if(this.u.videoData.enableServerStitchedDai&&this.fg){var a;null==(a=this.B.get(this.fg))||a.Fd()}else this.j&&this.j.Fd()}; g.h.Gd=function(a,b){this.qoe&&JJa(this.qoe,a,b);this.C.onError(a)}; g.h.Ox=function(a){this.qoe&&this.qoe.Ox(a)}; g.h.Gx=function(a){this.qoe&&this.qoe.Gx(a)}; g.h.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)}; g.h.ap=ca(37);g.h.ya=function(a,b,c){this.qoe&&this.qoe.ya(a,b,c)}; g.h.ey=function(a,b,c){this.qoe&&this.qoe.ey(a,b,c)}; g.h.by=function(a){this.qoe&&this.qoe.by(a)}; g.h.ju=function(a,b,c){this.qoe&&this.qoe.ju(a,b,c)}; g.h.Zo=ca(40);g.h.bk=ca(16);g.h.Nw=function(){if(this.qoe)return this.qoe.Nw()}; g.h.Mb=function(){if(this.u.videoData.enableServerStitchedDai&&this.fg){var a;null==(a=this.B.get(this.fg))||a.Mb()}else if(this.j)return this.j.Mb();return{}}; g.h.gh=function(a){return this.j?this.j.gh(a):function(){}}; g.h.Nu=function(){this.j&&this.j.Nu()};g.v(tT,g.G);g.h=tT.prototype;g.h.Qd=function(a,b){this.Fk();b&&2E3<=this.j.j.length&&this.Cw("captions",1E4);b=this.j;if(1b.j.length)b.j=b.j.concat(a),b.j.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.j.length||0a&&this.C.start()))}; g.h.PE=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.ma(),this.C.start(a)))}}; g.h.dN=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.V(a,32)&&this.Z.start();for(var b=g.V(this.D(),2)?0x8000000000000:1E3*this.N(),c=g.V(a,2),d=[],e=[],f=g.r(this.B),k=f.next();!k.done;k=f.next())k=k.value,k.active&&(c?0x8000000000000>k.end:!k.contains(b))&&e.push(k);d=d.concat(this.TE(e));f=e=null;c?(a=kKa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=lKa(this.j)):a=this.u<=b&&rH(a)?jKa(this.j,this.u,b):kKa(this.j,b); d=d.concat(this.PE(a));e&&(d=d.concat(this.TE(e)));f&&(d=d.concat(this.PE(f)));this.u=b;oKa(this,d)}}; g.h.qa=function(){this.B=[];this.j.j=[];g.G.prototype.qa.call(this)}; g.zP.OA(tT,{Qd:"crmacr",PE:"crmncr",TE:"crmxcr",dN:"crmis",Vf:"crmrcr"});g.v(xT,g.cv);xT.prototype.Im=function(){return this.K}; xT.prototype.Jj=function(){return Math.max(this.N()-uKa(this,!0),this.videoData.getMinSeekableTime())}; xT.prototype.Qa=function(){};g.v(CT,g.G);CT.prototype.Sc=function(){g.op(this.B)}; CT.prototype.D=function(){var a=this,b=this.Aa.xd(),c=this.Aa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.V(c,8)&&g.V(c,16),k=this.Aa.Do().isBackground()||c.isSuspended();DT(this,this.xa,f&&!k,e,"qoe.slowseek",function(){},"timeout"); f=f&&isFinite(this.j)&&0d+5;q=p&&m&&q;DT(this,this.K,q&&!k,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");DT(this,this.N,q&&!k,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var w=f.getCurrentTime();n=b.wq();n=fta(n,w);n=!f.J.u&&d===n;DT(this,this.Pa,p&&m&&n&&!k,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(w)},"seek_to_loader")}DT(this,this.X,p&&m&&!k,p&&!m,"qoe.longrebuffer",function(){}, "timeout"); n=c.isSuspended();n=g.bc(this.Aa.Zi,"ad")&&!n;DT(this,this.J,n,!n,"qoe.start15s",function(){a.Aa.Je("ad")},"ads_preroll_timeout"); n=this.Aa.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Aa,y=x.Fi.Kc();(!y||!x.videoData.isAd()||y.getVideoData().Bc!==x.getVideoData().Bc)&&x.videoData.me||x.Wf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)}; DT(this,this.Ha,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&nA(b.gg(),d+5)&&q;DT(this,this.Ia,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");DT(this,this.Ra,g.qH(c)&&g.V(c,64)&&!k,e,"qoe.start15s",function(){},"timeout"); DT(this,this.Z,!!f&&!f.mediaSource&&g.qH(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}}; CT.prototype.Gd=function(a,b,c){b=this.Mb(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Aa.Gd(new g.YC(a,b));this.u[a]=!0}; CT.prototype.Mb=function(a){a=Object.assign(this.Aa.Mb(!0),a.Mb());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; AT.prototype.reset=function(){this.j=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1}; AT.prototype.Mb=function(){var a={},b=(0,g.R)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.v(FT,g.G);g.h=FT.prototype;g.h.setMediaElement=function(a){g.bv(this.Ha);(this.mediaElement=a)?(LKa(this),ET(this)):HT(this)}; g.h.Sc=function(a){this.Z.Sc(a);this.S("html5_exponential_memory_for_sticky")&&(a.state.Ic()?g.op(this.ma):this.ma.stop());if(this.mediaElement)if(8===a.Wo.state&&rH(a.state)&&g.sH(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.gg();var c=this.S("manifestless_post_live_ufph")||this.S("manifestless_post_live")?mA(b,Math.max(a-3.5,0)):mA(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Ra-c)||(this.Aa.ya("seekover",{b:lA(b, "_"),cmt:a}),this.Ra=c,this.seekTo(c,{Cq:!0,oe:"playbacktimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.videoData.gb&&0=this.wd())||!g.iE(this.videoData);l||this.Aa.ya("seeknotallowed",{st:c,mst:this.wd()});if(!l)return this.C&&(this.C=null,KT(this)),ti(this.getCurrentTime());this.Qa();if(.005>Math.abs(a-this.j)&&this.N)return this.Qa(),this.D;k&&(c=a,(2<=this.Y.X|| this.S("html5_log_seek_reasons"))&&this.Aa.ya("seekreason",{reason:k,tgt:c}));this.N&&HT(this);this.D||(this.D=new xP);a&&!isFinite(a)&>(this,!1);k=a;(JT(this)&&!(this.mediaElement&&0e.videoData.endSeconds&&isFinite(f)&&yU(e);fb.start&&yU(this.Aa);return this.D}; g.h.wd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.wd();var b;if(!this.S("html5_linear_live_max_seekable_killswitch")&&zE(this.videoData)&&(null==(b=this.mediaElement)?0:b.Tl())&&this.videoData.j)return a=this.getCurrentTime(),Lwa(1E3*this.getIngestionTime(a))+a;if(TD(this.videoData)&&this.videoData.fh&&this.videoData.j)return this.videoData.j.wd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.u)return this.u.Jj();a=this.videoData.wd();this.policy.j&& this.mediaElement&&(a=Math.max(a,eya(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?Vr()?Lwa(this.mediaElement.jz().getTime()):hH(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.h.getMinSeekableTime=function(){var a=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(zE(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.getIngestionTime(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a}; g.h.qa=function(){IT(this,null);this.Z.dispose();g.G.prototype.qa.call(this)}; g.h.Mb=function(){var a={};this.Ua&&Object.assign(a,this.Ua.Mb());this.mediaElement&&Object.assign(a,this.mediaElement.Mb());return a}; g.h.dH=function(a){this.timestampOffset=a}; g.h.getStreamTimeOffset=function(){return TD(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.h.pd=function(){return this.timestampOffset}; g.h.getIngestionTime=function(a){return this.videoData.j.getIngestionTime(a-this.timestampOffset)}; g.h.rq=function(){if(!this.mediaElement)return 0;if(jE(this.videoData)){var a=eya(this.mediaElement)+this.timestampOffset-this.getMinSeekableTime(),b=this.wd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.rq()}; g.h.uB=function(a){this.J&&(this.J.j=a.audio.index)}; g.h.S=function(a){return this.Y&&this.Y.S(a)}; g.h.Qa=function(){};LT.prototype.isFinished=function(){return this.finished}; LT.prototype.start=function(){this.started=!0}; LT.prototype.reset=function(){this.finished=this.started=!1};MT.prototype.encrypt=function(a){return(new OB(this.j.j)).encrypt(a,this.iv)}; MT.prototype.decrypt=function(a,b){return(new OB(this.j.j)).decrypt(a,b)};g.v(NT,g.G);g.h=NT.prototype;g.h.og=function(a){var b;return!(null==(b=this.Nd.get(a))||!b.pe.totalLength)}; g.h.Yh=function(a){a=this.Nd.get(a);var b=a.pe;a.Hz+=b.totalLength;a.pe=new cy;return b}; g.h.cf=function(a){return this.Nd.get(a).cf}; g.h.Tf=function(a){return this.Nd.get(a).Tf}; g.h.Lx=function(a){(a=this.Nd.get(a))&&!a.Tf&&(a.Tf=!0)}; g.h.qa=function(){g.G.prototype.qa.call(this);for(var a=g.r(this.Nd.keys()),b=a.next();!b.done;b=a.next())OT(this,b.value);this.Nd.clear()};RT.prototype.decrypt=function(a){var b=this,c,d,e,f,k,l;return g.B(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;c=new Uint8Array(16);EB()?d=new NB(a):e=new OB(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ya(3);break}f=b.j.shift();if(!d){k=e.decrypt(hy(f.buffer),c);m.Ya(4);break}return g.A(m,d.decrypt(hy(f.buffer),c),5);case 5:k=m.u;case 4:l=k;for(var n=0;n=e.Gz||0>=e.gC||0>=e.durationMs||0>e.startTimeMs?PT(a,f):c.KN.push(e))),fU(b))):(this.j[f]={OM:!1,No:m,headers:[k]},b=this.td,b.Ve?(e=f.split(";")[0],b.Ve.has(e)||(a=new NT(b),b.Ve.set(e, a),g.H(b,a)),null==(d=b.Ve.get(e))||PKa(d,f,m)):null==(e=b.Sd)||PKa(e,f,m));break;case 21:BLa(this,b,!1);break;case 12:BLa(this,b,!0);break;case 22:this.Lx(b);break;case 37:b=vK(b,TKa);if(b.lE||b.NI)this.td.aF=b;break;default:this.td.Oh&&this.td.ya("ombup","id."+a+";len."+c+";ignored.1")}}; g.h.Lx=function(a){var b=iy(a,0);this.td.Oh&&this.td.ya("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.B[b]||null)&&this.td.Lx(a);a&&(b=this.j[a],1===b.headers.length&&b.headers[0].bB||eLa(this.queue,a))}; g.h.ZG=function(a,b){var c=this,d,e,f,k,l,m,n,p,q,t,w;return g.B(function(x){switch(x.j){case 1:c.td.ZG();d=hy(a);if(!b){f=d;x.Ya(2);break}var y=c.td;var z=c.iv;y=EB()?NKa(y.fH,d,z):Promise.resolve(y.fH.decrypt(d,z));return g.A(x,y,3);case 3:f=x.u;case 2:e=f;if(!c.td.enableCompression){x.Ya(4);break}return g.A(x,lLa(e),5);case 5:e=x.u,c.td.ya("decompression",{ds:"DecompressionStream"in window});case 4:try{k=vK(e,cLa)}catch(E){return l=E instanceof Error?{name:E.name,message:E.message}:{},l.webcrypto= ""+ +!!EB(),l.enc=""+ +c.C,m=new g.YC("onesie.response.parse",l),x.return(Promise.reject(m))}if(1!==k.onesieProxyStatus)return n={st:k.onesieProxyStatus,webcrypto:""+ +!!EB(),textencoder:""+ +!!g.C.TextEncoder},p=new g.YC("onesie.response.badproxystatus",n),x.return(Promise.reject(p));if(200!==k.httpStatus)return q={st:k.httpStatus},t=new g.YC("onesie.response.badstatus",q),x.return(Promise.reject(t));w=g.oy(k.body);return x.return(w)}})}; g.h.re=function(a){this.td.re(a)};gU.prototype.feed=function(a){for(dy(this.j,a);;){var b=0;b=g.r(CLa(this.j,b));a=b.next().value;b=b.next().value;b=g.r(CLa(this.j,b));var c=b.next().value;b=b.next().value;if(0>a||0>c||!(b+c<=this.j.totalLength))break;b=this.j.split(b).Gr.split(c);c=b.Gr;this.callbacks.Cl.feed(a,b.JF);this.j=c}}; gU.prototype.dispose=function(){this.j=new cy};g.v(hU,g.G);g.h=hU.prototype;g.h.re=function(a){this.Aa.re(a)}; g.h.MG=function(){this.re("orfb");this.SA=!0;if(FLa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Kj(),rt:(1E3*IHa(this.Il)).toFixed(),shost:g.Xi(this.Wt),trigger:"o1"};this.ya("pathprobe",XC(a))}}; g.h.ZG=function(){this.re("orpr");this.QM=!0}; g.h.TG=function(){if(this.Ve)for(var a=g.r(this.Ve.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Ve.get(b.value))||QT(c)}else null==(a=this.Sd)||QT(a)}; g.h.ya=function(a,b,c){this.Aa.ya(a,b,void 0===c?!1:c)}; g.h.Lx=function(a){var b;null==(b=ST(this,a))||b.Lx(a)}; g.h.fetch=function(){var a=this,b,c,d,e,f,k,l,m,n,p,q;return g.B(function(t){if(1==t.j)return a.CB.start(),a.re("ogpd"),(b=DLa(a.videoData,a.Jo))?t.Ya(2):g.A(t,ELa(a.videoData,a.Jo),3);2!=t.j&&(b=t.u);if(!b)return a.logger.info("Onesie URL creation failed."),c={url:"0"},d=new g.YC("onesie.unavailable.hotconfig",c),a.fail(d),t.return(a.Ml);a.LP=Wx(b);var w=a.playerRequest,x=a.Y,y=a.videoData,z=rP(a.LP);z=void 0===z?!1:z;var E=x.dh,I="https://web.archive.org/web/20220328145930/https://youtubei.googleapis.com/youtubei/"+E.innertubeApiVersion+ "/player",J=g.uE(y);E.TF&&J||(I=I+"?key="+E.innertubeApiKey);E=[{name:"Content-Type",value:"application/json"}];J&&E.push({name:"Authorization",value:"Bearer "+J});E.push({name:"User-Agent",value:g.Ab()});x.S("enable_web_eom_visitor_data")&&Vq("EOM_VISITOR_DATA")?E.push({name:"X-Goog-EOM-Visitor-Id",value:Vq("EOM_VISITOR_DATA")}):(y=y.visitorData||Vq("VISITOR_DATA"))&&E.push({name:"X-Goog-Visitor-Id",value:y});(y=g.PA(x.experiments,"debug_sherlog_username"))&&E.push({name:"X-Youtube-Sherlog-Username", value:y});w=JSON.stringify(w);py?w=py.encode(w):(y=new Uint8Array(Math.ceil(1.2*w.length)),J=qy(w,y),y.lengthJ&&(y=y.subarray(0,J)),w=y);x=x.S("html5_onesie_prefer_trusted_host");f={url:I,httpHeaders:E,postBody:w,proxiedByTrustedBandaid:x&&z,skipResponseEncryption:x&&z};try{var N=a.Y,aa=a.videoData,K=a.Aa.getPlayerSize(),sa=a.Aa.getVisibilityState(),ia=a.LL.onesieUstreamerConfig,Ca=null==(k=a.videoData.zK)?void 0:k.QI,vb=a.fH,Rc=KBa(f,bLa),Wa=vb.encrypt(Rc), Ac=vb.j.encryptedClientKey,Xc=vb.iv,me=vb.iv,Kc=new HB(vb.j.B);Kc.update(Wa);Kc.update(me);var ob=vua(Kc);Kc.update(Kc.D);Kc.update(ob);var Ie=vua(Kc);Kc.reset();var wg=N.S("html5_onesie_ads"),Rf=!!f.skipResponseEncryption,Xh=WB(N.schedule,!0),Wd=Rf&&N.S("html5_onesie_disable_js_cleartext_compression")||!!EB()&&1572864=a.start);return a}; g.h.Im=function(){return this.Tc.Im()}; g.h.Ic=function(){return this.playerState.Ic()}; g.h.getPlayerState=function(){return this.playerState}; g.h.getPlayerType=function(){return this.playerType}; g.h.getPreferredQuality=function(){if(this.Oe){var a=this.Oe;a=a.videoData.Ip.compose(a.videoData.uQ);a=Hx(a)}else a="auto";return a}; g.h.Qw=ca(11);g.h.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.h.setMediaElement=function(a){if(this.mediaElement&&a.Ke()===this.mediaElement.Ke()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.bv(this.Qu),this.mediaElement=a,mMa(this),this.Tc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ng();if(!this.playerState.isError()){var b=nH(this.playerState,512);g.V(b,8)&&!g.V(b,2)&&(b=mH(b,1));a.isView()&&(b=nH(b,64));this.Vb(b)}this.mediaElement=a;this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate); mMa(this);this.Tc.setMediaElement(this.mediaElement);this.S("html5_prewarm_media_source")&&!this.Fj.nx&&(a=this.mediaElement,a.B||a.Af()||!ita()||(a.B=a.uq()))}}; g.h.Ng=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0this.mediaElement.getCurrentTime()&& this.Ua)return;break;case "resize":wMa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.jL&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&0===this.getCurrentTime()&&g.Ks){tU(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Af()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.V(b,128)){c=this.cw;var e=this.mediaElement;d=b.state;e=e?e:a.target;var f= e.getCurrentTime();if(!g.V(b,64)||"ended"!==a.type&&"pause"!==a.type){var k=e.Tf()||1Math.abs(f-e.getDuration()),l="pause"===a.type&&e.Tf();f="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.V(b,4)&&!uT(c,f);if(l||k&&f)0a-this.YA))this.YA=a,b!==this.Cf()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Ne()),this.ya("airplay",{rbld:b}),QS(this)),this.ea("airplayactivechange")}; g.h.Xw=function(a){if(this.Ua){var b=this.Ua,c=b.B,d=b.currentTime;c.ya("sdai",{adfetchdone:a});a&&!isNaN(c.C)&&rGa(c,d,c.C,c.B);SQ(c,4,"adf");g.op(b.ma)}}; g.h.Pb=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){DKa(this.Tc,this.Ic());var c=this.getCurrentTime();this.Ua&&(g.V(this.playerState,4)&&g.iE(this.videoData)||oIa(this.Ua,c));5Math.abs(m-k)?(b.ya("setended",{ct:k,bh:l,dur:m,live:n}),n&&b.S("html5_set_ended_in_pfx_live_cfl")||(b.mediaElement.tq()?b.seekTo(0,{oe:"videoplayer_loop"}):HP(b))):(g.sH(b.playerState)||IU(b,"progress_fix"),b.Vb(mH(b.playerState,1)))):(m&&!n&&!p&& 0n-1&&b.ya("misspg",{t:k.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),g.V(b.playerState,4)&&g.sH(b.playerState)&&5qF(b,8)||g.rF(b,1024))&&this.Oq.stop();!g.rF(b,8)||this.videoData.gb||g.V(b.state,1024)||this.Oq.start();g.V(b.state,8)&&0>qF(b,16)&&!g.V(b.state,32)&& !g.V(b.state,2)&&this.playVideo();g.V(b.state,2)&&jE(this.videoData)&&(this.hk(this.getCurrentTime()),this.Pb(!0));g.rF(b,2)&&this.MH(!0);g.rF(b,128)&&this.Xm();this.videoData.j&&this.videoData.isLivePlayback&&!this.CQ&&(0>qF(b,8)?(a=this.videoData.j,a.B&&a.B.stop()):g.rF(b,8)&&this.videoData.j.resume());this.Tc.Sc(b);this.Zb.Sc(b);if(c&&!this.isDisposed())try{for(var k=g.r(this.LB),l=k.next();!l.done;l=k.next()){var m=l.value;this.zg.Sc(m);this.ea("statechange",m)}}finally{this.LB.length=0}}}; g.h.Ix=function(){this.videoData.isLivePlayback||this.ea("connectionissue")}; g.h.aH=function(){this.Hb.tick("qoes")}; g.h.tB=function(a,b,c,d){a:{var e=this.Fj;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=ZC(b);"drm.keyerror"===a&&this.Xd&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())kJa(e,a);else{if(e.Aa.Wf(a,b,d,c),e.videoData.S("html5_exile_on_drm_fatal")&&cJa(e,{detail:c}))break a}else e.Gd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ya("retrydrm",{sessionLimitExhausted:1}),e.D++,tMa(e.Aa))}}; g.h.rX=function(){var a=this,b=g.XA(this.Y.experiments,"html5_license_constraint_delay"),c=ds();b&&c?(b=new g.L(function(){vU(a);qU(a)},b),g.H(this,b),b.start()):(vU(this),qU(this))}; g.h.Kx=function(a){this.ea("heartbeatparams",a)}; g.h.bp=function(a){this.ya("keystatuses",LIa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var d=MIa(b,c);d=BS(a)?CS(a,d):a.D.includes(d)}else{a:{b=MIa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}b=a.ma&&d;c&&!b?kJa(this.Fj):d||CS(a,"AUDIO")&&CS(a,"SD")||(this.GH?this.ea("drmoutputrestricted"):(this.GH= !0,this.ya("retrydrm",{o:1}),wU(this),tMa(this)))}; g.h.uX=function(){if(!this.videoData.gb&&this.mediaElement&&!this.isBackground()){var a="0";0=c.u.size){var d="ns;";c.X||(d+="nr;");c=d+="ql."+c.B.length}else c=LIa(c.u.values().next().value),c=XC(c);b.drmp=c}var e;Object.assign(a,(null==(e=this.Ua)?void 0:e.Mb())||{});var f;Object.assign(a,(null==(f=this.mediaElement)?void 0: f.Mb())||{})}this.Zb.Gd("qoe.start15s",XC(a));this.ea("loadsofttimeout")}}; g.h.hk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,qU(this))}; g.h.MH=function(a){var b=this;a=void 0===a?!1:a;if(!this.Fz){ux("att_s","player_att")||vx("att_s",void 0,"player_att");var c=new g.qBa(this.videoData);if("c1a"in c.j&&!g.TJ.isInitialized()&&(vx("att_wb",void 0,"player_att"),2===this.iE&&.01>Math.random()&&g.Mv(Error("Botguard not available after 2 attempts")),!a&&5>this.iE)){g.op(this.jE);this.iE++;return}if("c1b"in c.j){var d=eKa(this.Zb);d&&tBa(c).then(function(e){e&&!b.Fz&&d?(vx("att_f",void 0,"player_att"),d(e),b.Fz=!0):vx("att_e",void 0,"player_att")}, function(){vx("att_e",void 0,"player_att")})}else(a=g.rBa(c))?(vx("att_f",void 0,"player_att"),dKa(this.Zb,a),this.Fz=!0):vx("att_e",void 0,"player_att")}}; g.h.wd=function(a){return this.Tc.wd(void 0===a?!1:a)}; g.h.getMinSeekableTime=function(){return this.Tc.getMinSeekableTime()}; g.h.pd=function(){return this.Tc?this.Tc.pd():0}; g.h.getStreamTimeOffset=function(){return this.Tc?this.Tc.getStreamTimeOffset():0}; g.h.Cm=function(){var a=0;this.Y.S("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.pd():this.getStreamTimeOffset());return a}; g.h.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.dT)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; g.h.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.yb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.h.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(NU(this))return 3;var b;return a&&(null==(b=this.zd)?0:b.isAdPlaying(this.getCurrentTime()))?2:g.ZK(this).getPlayerType()}; g.h.yb=function(a){return 3===this.getPresentingPlayerType()?TK(this.zc).Ld:g.ZK(this,a).getPlayerState()}; g.h.getAppState=function(){return this.appState}; g.h.eH=function(a){switch(a.type){case "loadedmetadata":bL(this.Hb,"fvb");this.eC.start();a=g.r(this.vu);for(var b=a.next();!b.done;b=a.next())b=b.value,WMa(this,b.id,b.L_,b.K_,!1);this.vu=[];break;case "loadstart":bL(this.Hb,"gv");break;case "progress":case "timeupdate":2<=pA(a.target.gg())&&bL(this.Hb,"l2s");break;case "playing":g.RC&&this.eC.start();if(g.BC(this.Y))a=!1;else{b=g.VK(this.sb());a="none"===this.mediaElement.getStyle("display")||0===Fh(this.mediaElement.getSize());var c=AQ(this.template), d=this.Bb.getVideoData(),e=g.tC(this.Y)||g.vC(this.Y);d=WD(d);b=!c||b||e||d||this.Y.Sb;a=a&&!b}a&&(this.Bb.ya("hidden",{},!0),this.getVideoData().ub||(this.S("html5_new_elem_on_hidden")?(this.getVideoData().ub=1,this.BO(null),this.Bb.playVideo()):QU(this,"hidden",!0)))}}; g.h.onLoadProgress=function(a,b){this.Ta.Na("onLoadProgress",b)}; g.h.JY=function(){this.Ta.ea("playbackstalledatstart")}; g.h.onVideoProgress=function(a,b){a=TU(this,a);b=dV(this,a.getCurrentTime(),a);this.Ta.Na("onVideoProgress",b)}; g.h.onAutoplayBlocked=function(){this.Ta.Na("onAutoplayBlocked")}; g.h.bY=function(){this.Ta.ea("progresssync")}; g.h.JW=function(a){if(1===this.getPresentingPlayerType()){g.rF(a,1)&&!g.V(a.state,64)&&JU(this).isLivePlayback&&this.vb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){RMa(this);return}KMa(this)}if(g.V(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Na("onError",ETa[b.errorCode]||5);this.Ta.Na("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.QE});6048E5<(0,g.R)()-this.Y.Bd&&this.Ta.Na("onReloadRequired")}b={};if(a.state.Ic()&&!g.sH(a.state)&&!ux("pbresume","ad_to_video")&&ux("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);gx(b,"ad_to_video");if(this.S("html5_csi_delay_pbresume")){if(ux("plev","ad_to_video")&&!isNaN(this.Hb.u))if(b=1E3*(this.getCurrentTime()-this.Hb.u),0>b){var d;null==(d=g.ZK(this))|| d.ya("csir",{ossms:b})}else if(1E5Math.random()&&g.xs("autoplayTriggered",{intentional:this.cN});this.CN=!1;rCa(this.zc);this.S("web_player_defer_ad")&&UU(this);this.Ta.Na("onPlaybackStartExternal");this.Y.S("mweb_client_log_screen_associated");(function(){var c=g.Fv(a.JP||(a.Se()?3:0));if(c&&"UNDEFINED_CSN"!==c){var d={cpn:a.getVideoData().clientPlaybackNonce, csn:c};if(a.Y.S("web_playback_associated_ve")&&a.getVideoData().Wa){var e=g.uv(a.getVideoData().Wa);g.Rv(c,e,void 0);d.playbackVe=e.getAsJson()}a.Y.S("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.S("web_playback_associated_log_ctt")&&a.getVideoData().X&&(c.cttAuthInfo={token:a.getVideoData().X,videoId:a.getVideoData().videoId});g.xs("playbackAssociated",d,c)}else g.Mv(new g.Cs("CSN Missing or undefined during playback association"))})(); var b={};!this.S("web_player_csi_ctt_killswitch")&&this.getVideoData().X&&(b.cttAuthInfo={token:this.getVideoData().X,videoId:this.getVideoData().videoId});hx("player_att",b);this.getVideoData().botguardData&&(g.KC(this.Y)||"MWEB"===zC(this.Y)?g.Nr(g.Pr(),function(){$U(a)}):$U(this)); this.fC()}; g.h.QG=function(){this.Ta.ea("internalAbandon");this.S("html5_ad_module_cleanup_killswitch")||eV(this)}; g.h.pO=function(a){a=a.j;!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.Bw())}; g.h.tX=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)}; g.h.playVideo=function(a){if(a=g.ZK(this,a))2===this.appState?ZU(this):(null!=this.uj&&this.uj.tb&&this.uj.start(),g.V(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; g.h.pauseVideo=function(a){(a=g.ZK(this,a))&&a.pauseVideo()}; g.h.stopVideo=function(){var a=this.vb.getVideoData(),b=new g.MD(this.Y,{video_id:a.TD||a.videoId,oauth_token:a.oauthToken});b.Z=g.gg(a.Z);this.cancelPlayback(6);iV(this,b,1);null!=this.uj&&this.uj.stop()}; g.h.cancelPlayback=function(a,b){xt(this.yp);this.yp=0;var c=g.ZK(this,b);c&&(this.Y.S("html5_high_res_logging")&&c.ya("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Bb&&vL(this.zc,a),1===b&&(c.stopVideo(),eV(this)),c.Xm(),PU(this,"cuerangesremoved",c.ym()),c.zg.reset(),this.Su&&c.isGapless()&&(c.Ng(!0),c.setMediaElement(this.mediaElement))))}; g.h.sendVideoStatsEngageEvent=function(a,b,c){(b=g.ZK(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.h.gh=function(a){var b=g.ZK(this,void 0);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.gh(a):null}; g.h.updatePlaylist=function(){IC(this.Y)?WU(this):g.kC(this.Y)&&XU(this);this.Ta.Na("onPlaylistUpdate")}; g.h.setSizeStyle=function(a,b){this.VP=a;this.ZF=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()}; g.h.isWidescreen=function(){return this.ZF}; g.h.Se=function(){return this.visibility.Se()}; g.h.isInline=function(){return this.visibility.isInline()}; g.h.It=function(){return this.visibility.It()}; g.h.Et=function(){return this.visibility.Et()}; g.h.lx=function(){return this.VP}; g.h.getAdState=function(){if(3===this.getPresentingPlayerType())return TK(this.zc).getAdState();if(!this.me()){var a=wL(this.sb());if(a)return a.getAdState()}return-1}; g.h.mY=function(a){var b=this.template.getVideoContentRect();Bm(this.vN,b)||(this.vN=b,this.Bb&&vU(this.Bb),this.vb&&this.vb!==this.Bb&&vU(this.vb),1===this.kt()&&this.Px&&aNa(this,!0));this.fG&&g.Eh(this.fG,a)||(this.Ta.ea("appresize",a),this.fG=a)}; g.h.rf=function(){return this.Ta.rf()}; g.h.EY=function(){2===this.getPresentingPlayerType()&&this.rd.isManifestless()&&!this.S("web_player_manifestless_ad_signature_expiration_killswitch")?LFa(this.rd):(this.zd&&(YP(this.zd),eV(this)),QU(this,"signature",void 0,!0))}; g.h.BO=function(){this.Ng();OU(this)}; g.h.HX=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.Na("onPlayerRequestAuthFailed")}; g.h.Ix=function(){this.Ta.Na("CONNECTION_ISSUE")}; g.h.Kx=function(a){this.Ta.ea("heartbeatparams",a)}; g.h.cC=function(a){this.Ta.Na("onAutonavChangeRequest",1!==a)}; g.h.xd=function(){return this.mediaElement}; g.h.setBlackout=function(a){this.Y.Sb=a;this.Bb&&(this.Bb.Kr(),this.Y.ra&&cNa(this))}; g.h.setAccountLinkState=function(a){var b=g.ZK(this);b&&(b.getVideoData().JK=a,b.Kr())}; g.h.updateAccountLinkingConfig=function(a){var b=g.ZK(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}}; g.h.JX=function(){var a=g.ZK(this);if(a){var b=!this.Ta.kx();(a.MM=b)||a.Oq.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.B&&c.B.stop()}a.Y.S("html5_suspend_loader")&&a.Ua&&(b?a.Ua.resume():DU(a,!0));a.Y.S("html5_fludd_suspend")&&(g.V(a.playerState,2)||b?g.V(a.playerState,512)&&b&&a.Vb(nH(a.playerState,512)):a.Vb(mH(a.playerState,512)));a=a.Zb;a.qoe&&(a=a.qoe,g.YS(a,g.GP(a.j),"stream",[b?"A":"I"]))}}; g.h.onLoadedMetadata=function(){this.Ta.Na("onLoadedMetadata")}; g.h.onDrmOutputRestricted=function(){this.Ta.Na("onDrmOutputRestricted")}; g.h.hE=function(){this.S("html5_skip_empty_load")&&(qTa=!0);tTa=this.S("html5_ios_force_seek_to_zero_on_stop");rTa=this.S("html5_ios7_force_play_on_stall");sTa=this.S("html5_ios4_seek_above_zero");hta=this.S("html5_retain_source_buffer_appends_for_debugging");this.S("html5_mediastream_applies_timestamp_offset")&&(sR=!0);this.S("html5_dont_override_default_sample_desc_index")&&(esa=!0);var a=g.XA(this.Y.experiments,"html5_cobalt_override_quic");a&&SEa(0a)){var e;if((c=null==(e=this.getVideoData())?void 0:e.Ak)&&aq.start&&dE;E++)if(y=(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),4==E%5){for(var I="",J=0;6>J;J++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+I,y>>=5;z+=I}w=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else w="";l={video_id_and_cpn:c.videoId+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:p?"":"display:none",drm:p,debug_info:d, bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f= "Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=tQ(k,"bandwidth");l.network_activity_samples=tQ(k,"networkactivity");l.live_latency_samples=tQ(k, "livelatency");l.buffer_health_samples=tQ(k,"bufferhealth");b=g.wE(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";ZD(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20220323_01_RC00",l.release_style=""):l.release_style="display:none";return l}; g.h.getVideoUrl=function(a,b,c,d,e){return this.Tb&&this.Tb.postId?(a=this.Y.getVideoUrl(a),a=sj(a,"v"),a.replace("/watch","/clip/"+this.Tb.postId)):this.Y.getVideoUrl(a,b,c,d,e)}; var U0={};g.Ja("yt.player.Application.create",g.MU.create,void 0);g.Ja("yt.player.Application.createAlternate",g.MU.create,void 0);Npa(Iv(),{Pm:[{wx:/Unable to load player module/,weight:20},{wx:/Failed to fetch/,weight:500},{wx:/XHR API fetch failed/,weight:10},{wx:/JSON parsing failed after XHR fetch/,weight:10},{wx:/Retrying OnePlatform request/,weight:10}]});var TTa=g.Ka("ytcsi.tick");TTa&&TTa("pe");var iNa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),gNa=new Map([["normal",{vr:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{vr:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{vr:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{vr:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{vr:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{vr:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{vr:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Fr:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var UTa={Bca:"replaceUrlMacros",eba:"onAboutThisAdPopupClosed",c6:"executeCommand"};xV.prototype.jl=function(){return"adLifecycleCommand"}; xV.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.oi(function(){b.controller.Un()}); break;case "END_LINEAR_AD_PLACEMENT":g.oi(function(){b.controller.dl()}); break;case "FILL_ABOVE_FEED_SLOT":g.oi(function(){a.elementId&&b.controller.gA(a.elementId)}); break;case "CLEAR_ABOVE_FEED_SLOT":g.oi(function(){b.controller.Qz()})}}; xV.prototype.Fm=function(a){this.handle(a)};yV.prototype.jl=function(){return"clearCueRangesCommand"}; yV.prototype.handle=function(){var a=this.CE();g.oi(function(){a.Vf(Array.from(a.Vp))})}; yV.prototype.Fm=function(a){this.handle(a)};zV.prototype.jl=function(){return"muteAdEndpoint"}; zV.prototype.handle=function(a){nNa(this,a)}; zV.prototype.Fm=function(a,b){nNa(this,a,b)};AV.prototype.jl=function(){return"openPopupAction"}; AV.prototype.handle=function(){}; AV.prototype.Fm=function(a){this.handle(a)};BV.prototype.jl=function(){return"pingingEndpoint"}; BV.prototype.handle=function(){}; BV.prototype.Fm=function(a){this.handle(a)};CV.prototype.jl=function(){return"urlEndpoint"}; CV.prototype.handle=function(a,b){b=Object.assign({},b);if(DW(this.sZ,"h5_enable_adcpn_macro_substitution_for_click_pings")){var c=kw(this.fk,2);c&&(b.AD_CPN=c.clientPlaybackNonce)}b=g.gp(a.url,b);var d,e;if((null==(d=a.browserConversionApiData)?0:d.impressiondata)&&(null==(e=a.browserConversionApiData)?0:e.conversiondestination)){var f;if(null==(f=a.browserConversionApiData)?0:f.originTrialToken)d=document.createElement("meta"),d.setAttribute("http-equiv","origin-trial"),d.setAttribute("content", a.browserConversionApiData.originTrialToken),document.head.appendChild(d);a={attributionSourceEventId:a.browserConversionApiData.impressiondata,attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.rJ(b,void 0,void 0,a)}; CV.prototype.Fm=function(a){this.handle(a,{})};DV.prototype.jl=function(){return"adPingingEndpoint"}; DV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Wp.send(a,b,c)}; DV.prototype.Fm=function(a,b){lPa(this.Sa.get(),a,b,void 0)};EV.prototype.jl=function(){return"changeEngagementPanelVisibilityAction"}; EV.prototype.handle=function(a){this.I.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; EV.prototype.Fm=function(a){this.handle(a)};FV.prototype.jl=function(){return"loggingUrls"}; FV.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Xh.send(d.baseUrl,b,c,d.headers)}; FV.prototype.Fm=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,lPa(this.Sa.get(),c.baseUrl,b,c.headers)};g.v(pNa,g.G);var FNa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.v(GV,g.G);g.h=GV.prototype;g.h.rF=function(a,b){return this.j.rF(a,b)}; g.h.Vh=function(a,b){GW(this.Xb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Ud),d=c.next();!d.done;d=c.next())d.value.Vh(a,b)}; g.h.tf=function(a){if(KV(this.j,a)){XG(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.tf(a);for(var b=g.r(this.Ud),c=b.next();!c.done;c=b.next())c.value.tf(a);sNa(this,a)}}; g.h.uf=function(a){if(KV(this.j,a)){XG(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.uf(a);for(var b=g.r(this.Ud),c=b.next();!c.done;c=b.next())c.value.uf(a);KV(this.j,a)&&LV(this.j,a).D&&IV(this,a,!1)}}; g.h.zB=function(a){XG(this.Xb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);KV(this.j,a)&&(this.j.zB(a),IV(this,a,!1))}; g.h.Mc=function(a,b){if(KV(this.j,a)){MV(this.Xb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Ud),d=c.next();!d.done;d=c.next())d.value.Mc(a,b)}}; g.h.Xc=function(a,b,c){if(KV(this.j,a)){MV(this.Xb,hNa(c),a,b);this.j.Xc(a,b);for(var d=g.r(this.Ud),e=d.next();!e.done;e=d.next())e.value.Xc(a,b,c);(c=$V(this.j,a))&&b.layoutId===c.layoutId&&CNa(this,a,!1)}}; g.h.Gf=function(a,b,c){T(c,a,b,void 0,c.Xp);IV(this,a,!0)}; g.h.qa=function(){var a=ENa(this.j);a=g.r(a);for(var b=a.next();!b.done;b=a.next())IV(this,b.value,!1);g.G.prototype.qa.call(this)};DNa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.v(NV,ab);g.v(XV,ab);g.v(cW,g.G);g.h=cW.prototype;g.h.rF=function(a,b){b=ZV(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a}; g.h.uh=function(a){a=LV(this,a);"not_scheduled"!==a.j&&aW(a.slot,a.j,"onSlotScheduled");a.j="scheduled"}; g.h.Dw=function(a){a=LV(this,a);a.C="fill_requested";a.K.Dw()}; g.h.tf=function(a){a=LV(this,a);"enter_requested"!==a.j&&aW(a.slot,a.j,"onSlotEntered");a.j="entered"}; g.h.zB=function(a){LV(this,a).C="fill_canceled"}; g.h.uf=function(a){a=LV(this,a);"exit_requested"!==a.j&&aW(a.slot,a.j,"onSlotExited");a.j="scheduled"}; g.h.Xc=function(a,b){a=LV(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&aW(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.v(gW,g.G);gW.prototype.B=function(){return this.u};g.v(hW,g.G);hW.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.j});this.j||(this.j=this.u());return this.j};iW.prototype.executeCommand=function(a,b){XH(this.j(),a,b)}; iW.prototype.Kd=function(a,b){hza(this.j(),a,b)};g.v(FW,g.G);g.v(IW,g.G);IW.prototype.onCueRangeEnter=function(){}; IW.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.u.get().removeCueRange(a),jw(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=qw(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,Ob:c.Ob?XOa(c.slotId,d,c.Ob):void 0,pc:YOa(c.slotId,d,c.pc),uc:YOa(c.slotId,d,c.uc)})]},c.slotId))}; IW.prototype.qh=function(){for(var a=g.r(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.j.clear()}; IW.prototype.Zj=function(){};g.v(JW,g.G);g.h=JW.prototype;g.h.uh=function(){}; g.h.Yi=function(a){var b=this;g.Nr(g.Pr(),function(){var c=b.j.get(a);c&&T("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)}; g.h.tf=function(){}; g.h.Xi=function(){}; g.h.uf=function(){}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)}; g.h.Vi=function(a,b){this.ai.has(a)&&this.ai.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.h.Mc=function(a,b){this.ai.set(a,b)}; g.h.Xc=function(a){this.ai.delete(a)}; g.h.Vh=function(){};TW.prototype.clone=function(a){var b=this;return new TW(function(){return b.triggerId},a)};UW.prototype.clone=function(a){var b=this;return new UW(function(){return b.triggerId},a)};VW.prototype.clone=function(a){var b=this;return new VW(function(){return b.triggerId},a)};WW.prototype.clone=function(a){var b=this;return new WW(function(){return b.triggerId},a)};XW.prototype.clone=function(a){var b=this;return new XW(function(){return b.triggerId},a)};g.v($W,g.G);$W.prototype.logEvent=function(a){GW(this,a)};g.v(aX,$W);bX.prototype.clear=function(){this.j.clear()};g.v(cX,g.G);g.h=cX.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.qh=function(a,b,c,d,e,f,k){if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().S("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ga.get().qh(a,b,c,d,e,f,k);this.C.get().qh(a,b,c,d,e,f,k);var l;null==(l=this.u)||l.get().qh(a,b,c,d,e,f,k);this.B.qh(a,b,c,d,e,f,k);l=g.r(this.listeners);for(var m=l.next();!m.done;m=l.next())m.value.qh(a,b,c,d,e,f,k)}}; g.h.QG=function(){this.j&&this.Zj(this.j)}; g.h.Zj=function(a){this.j=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zj(a)};g.v(dX,g.G);dX.prototype.addCueRange=function(a,b,c,d,e,f,k){f=void 0===f?3:f;k=void 0===k?1:k;this.j.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new gPa(a,b,c,d,f),this.j.set(a.id,{Cd:a,listener:e,vk:k}),this.I.Qd([a],k))}; dX.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.I.Vf([b.Cd],b.vk),this.j.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; dX.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; dX.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; g.v(gPa,g.Cw);eX.prototype.aj=function(a){this.I.aj(a)}; eX.prototype.Na=function(a){this.I.Na.apply(this.I,[a].concat(g.u(g.Da.apply(1,arguments))))};g.h=iX.prototype;g.h.mf=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.I.V().S("html5_dai_enable_active_view_creating_completed_adblock"),iia(a,b),{};b=lxa(b);if(null===b||this.I.V().S("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Kc();c=c&&(this.I.V().S("enable_server_stitched_dai")||2===c.getPlayerType())&&mF(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ga.get().isFullscreen()};return fp(b,a,c)}; g.h.Ex=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ex()}; g.h.Dx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Dx()}; g.h.Fx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Fx()}; g.h.Bx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Bx()}; g.h.Cx=function(a){var b;null==(b=this.j.get(a.queryId))||b.Cx()};g.v(mX,$E);mX.prototype.j=function(){return this.C()}; mX.prototype.u=function(){return this.D()}; mX.prototype.S=function(a){return this.B(a)};nX.prototype.gh=function(){var a=this.I.Kc();return a&&(a=a.gh(1))?a:null}; nX.prototype.Rh=function(a,b){"string"===typeof b?this.I.getVideoData(1).yH(a,b):this.I.getVideoData(1).ya(a,b)};g.v(sX,g.G);g.h=sX.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.qh=function(){this.bE.clear();this.hG=null;this.I.V().S("html5_clear_timeline_storage_killswitch")||this.j.get().clear()}; g.h.Zj=function(){}; g.h.dZ=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Rh("ads_ssm_vdc_s",{pt:c,dvt:a});(gX(this.Ka.get())||this.Ka.get().I.V().S("html5_debug_client_stitched"))&&"dataloaded"!==a||sPa(this,b,c)}; g.h.zY=function(a,b){void 0!==a&&(this.hG=a,void 0===b?T("Expected ad video start time on SS video changed"):this.bE.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).ya("ads_ssvc",{pt:b,cpn:""+(null==c?void 0:c.clientPlaybackNonce)});c?sPa(this,c,b):T("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; g.h.qa=function(){this.listeners.length=0;this.kq=null;g.G.prototype.qa.call(this)}; g.h.Rh=function(a,b){this.I.getVideoData(1).ya(a,b)};g.v(tX,g.G);g.h=tX.prototype;g.h.qh=function(){var a=this;this.mq=Mg(function(){a.I.isDisposed()||a.I.Je("ad",1)})}; g.h.Zj=function(){}; g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.playVideo=function(){this.I.playVideo()}; g.h.pauseVideo=function(){this.I.pauseVideo()}; g.h.resumeVideo=function(a){this.Jm(a)&&this.I.playVideo()}; g.h.Jm=function(a){return 2===this.I.getPlayerState(a)}; g.h.getCurrentTimeSec=function(a,b){var c=this.j.get().hG;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):uX(this,c)}; g.h.getVolume=function(){return this.I.getVolume()}; g.h.isMuted=function(){return this.I.isMuted()}; g.h.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)}; g.h.getPlayerState=function(a){return this.I.getPlayerState(a)}; g.h.isFullscreen=function(){return this.I.isFullscreen()}; g.h.isAtLiveHead=function(){return this.I.isAtLiveHead()}; g.h.Bu=function(a){this.I.Bu(a)}; g.h.cY=function(){if(2===this.I.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Th(a)}; g.h.TX=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Wi(a,this.getPresentingPlayerType())}; g.h.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; g.h.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; g.h.pg=function(){for(var a=this.I.Se(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.pg(a)}; g.h.xb=function(){for(var a=this.I.bb().Eg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Si(a)}; g.h.Xj=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Xj(a)};g.v(wPa,g.G);xX.prototype.addListener=function(a){this.listeners.add(a)}; xX.prototype.removeListener=function(a){this.listeners.delete(a)};zX.prototype.Dw=function(){var a=this;zPa(this.j,function(){var b=X(a.slot.Ea,"metadata_type_ad_break_request_data");return a.u.get().fetch({IQ:b.getAdBreakUrl,ML:new g.Cw(b.tP,b.sP),nw:X(a.slot.Ea,"metadata_type_cue_point")})},function(){BPa(a)},function(b){b=b.im; 2<=b.length&&T("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,k;return!!(null==(d=c.renderer)?0:null==(e=d.linearAdSequenceRenderer)?0:null==(f=e.linearAds)?0:f.length)||!(null==(k=c.renderer)||!k.instreamVideoAdRenderer)})||BPa(a)})}; zX.prototype.rE=function(){APa(this.j)};AX.prototype.Dw=function(){var a=this;zPa(this.j,function(){var b=X(a.slot.Ea,"metadata_type_ad_break_request_data");return a.u.get().fetch({IQ:b.getAdBreakUrl,ML:new g.Cw(b.tP,b.sP)})})}; AX.prototype.rE=function(){APa(this.j)};VX.prototype.Dw=function(){tNa(this.callback,this.slot,X(this.slot.Ea,"metadata_type_fulfilled_layout"))}; VX.prototype.rE=function(){JV(this.callback,this.slot,new XV("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter."))};gY.prototype.ye=function(a,b){return eY(b,{Vd:["metadata_type_fulfilled_layout"]})?new VX(a,b):this.C(a,b)};g.v(hY,gY);hY.prototype.C=function(a,b){if(eY(b,{Vd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zX(a,b,this.j,this.B,this.u,this.D);if(eY(b,{Vd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new AX(a,b,this.j,this.B,this.u);throw new XV("Unsupported slot with type: "+b.slotType+" and client metadata: "+qV(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.v(iY,gY);iY.prototype.C=function(a,b){throw new XV("Unsupported slot with type: "+b.slotType+" and client metadata: "+qV(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.h=CPa.prototype;g.h.Ed=function(){return this.slot}; g.h.Jb=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Gf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Mc(this.slot,a),sqa(this.j,this.slot,b)):T("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen", this.slot,a)}}; g.h.lf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new NV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xc(this.slot,a,b)};kY.prototype.ye=function(a,b,c,d){if(jY(d,{Vd:["metadata_type_ad_break_response_data"],Ue:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new CPa(a,c,d,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};lY.prototype.mf=function(a){var b=this.D.get(a)||[];DPa(this,a,b);this.C.add(a)};g.h=EPa.prototype;g.h.Ed=function(){return this.slot}; g.h.Jb=function(){return this.layout}; g.h.init=function(){}; g.h.release=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Mc(this.slot,a),oY(this.u,"impression"),EY(this.j,a.layoutId))}; g.h.lf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new NV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Xc(this.slot,a,b)};rY.prototype.ye=function(a,b,c,d){if(jY(d,FPa()))return new EPa(a,c,d,this.Sa,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.v(sY,g.cv);g.h=sY.prototype;g.h.Ed=function(){return this.slot}; g.h.Jb=function(){return this.layout}; g.h.init=function(){this.u.get().addListener(this)}; g.h.release=function(){this.u.get().removeListener(this);this.dispose()}; g.h.DF=function(){}; g.h.BF=function(){}; g.h.AF=function(){}; g.h.FA=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),fQa(a,this.j,1))}; g.h.lf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Gf(this.slot,a,new NV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();fQa(c,this.j,3);this.j=[];this.callback.Xc(this.slot,a,b)}}; g.h.qa=function(){this.u.get().removeListener(this);g.cv.prototype.qa.call(this)};g.v(GPa,FE);g.v(vY,sY);g.h=vY.prototype;g.h.Bf=function(a,b){uY("action-companion",a,this.J.get().ai,this.Sa.get(),this.B,this.C,this.Ed(),this.Jb(),b)}; g.h.startRendering=function(a){tY(this.D,this.Ed(),this.Jb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new GPa(b,c,d,e,f)},this.j); sY.prototype.startRendering.call(this,a)}; g.h.Mc=function(a,b){b.layoutId===this.layout.layoutId?oY(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Sa.get().gh():T("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.h.Xc=function(){}; g.h.uh=function(){}; g.h.Yi=function(){}; g.h.Xi=function(){}; g.h.tf=function(){}; g.h.uf=function(){}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(){}; g.h.Vi=function(){}; g.h.Vh=function(){}; g.h.qa=function(){this.Fe().Ud.delete(this);sY.prototype.qa.call(this)};g.v(wY,sY);wY.prototype.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=nY(this.B);this.j.push(new wF(a,b,this.layout.layoutId,{adsClientData:this.layout.yc},!0,!0))}; wY.prototype.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a)}; wY.prototype.Bf=function(){}; wY.prototype.qa=function(){sY.prototype.qa.call(this)};g.v(xY,sY);g.h=xY.prototype;g.h.init=function(){sY.prototype.init.call(this);var a=X(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.yc},c=!X(this.layout.Ea,"metadata_type_player_bytes_callback").TA;this.j.push(new cJ(a,this.layout.layoutId,X(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))}; g.h.Xo=function(){this.B||this.Ga.get().resumeVideo(2)}; g.h.startRendering=function(a){sY.prototype.startRendering.call(this,a);this.callback.Mc(this.slot,a);this.C.Hs=this}; g.h.lf=function(a,b){sY.prototype.lf.call(this,a,b);r_(this.C,this)}; g.h.Bf=function(a){if(POa(this.D.get(),this.J))switch(a){case "visit-advertiser":this.Sa.get().I.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Ga.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ga.get().Jm(2))||this.Ga.get().pauseVideo();break;case "visit-advertiser":this.Ga.get().pauseVideo();X(this.layout.Ea,"metadata_type_player_bytes_callback").aC(); break;case "skip-button":a=X(this.layout.Ea,"metadata_type_player_bytes_callback"),a.TA&&a.Nx(this.Ed(),this.layout)}}; g.h.qa=function(){sY.prototype.qa.call(this)};zY.prototype.ye=function(a,b,c,d){if(a=yY(a,c,d,this.u,this.Ga,this.Sa,this.B,this.j))return a;throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.v(AY,g.G);g.h=AY.prototype;g.h.init=function(){var a=X(this.Jb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Lo()}; g.h.release=function(){var a=X(this.Jb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.kp()}; g.h.startRendering=function(a){a.layoutId!==this.Jb().layoutId?this.callback.Gf(this.Ed(),a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Jb().layoutId+("and LayoutType: "+this.Jb().layoutType))):(this.Ga.get().addListener(this),HV(this.Fe(),this),uPa(this.Ga.get()),this.ud.get().dI(),this.jn(a))}; g.h.lf=function(a,b){this.MF=!0;this.wp(a,b);this.Ga.get().I.Wm();this.Wd.get().I.cueVideoByPlayerVars({},2);a=jX(this.Ga.get(),1);g.V(a,4)&&!g.V(a,2)&&this.Ga.get().playVideo();this.Ga.get().removeListener(this);this.MF&&this.IN()}; g.h.Xc=function(a,b){b.layoutId===this.Jb().layoutId&&(this.MF=!1,this.Fe().Ud.delete(this))}; g.h.Wi=function(a,b){if(a.state.isError()){var c,d;this.Gf(null==(c=a.state.getData())?void 0:c.errorCode,new NV("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode}),b)}else this.JO(a)}; g.h.uh=function(){}; g.h.Yi=function(){}; g.h.Xi=function(){}; g.h.tf=function(){}; g.h.uf=function(){}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(){}; g.h.Vi=function(){}; g.h.Vh=function(){}; g.h.Xj=function(){};g.v(BY,AY);g.h=BY.prototype;g.h.Ed=function(){return this.slot}; g.h.Jb=function(){return this.layout}; g.h.Lo=function(){if(1>=this.u.length)throw new XV("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),SV(this.B,this.slot,b.Jb()),TV(this.B,this.slot,b.Jb())}; g.h.kp=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,YG(this.B,this.slot,b.Jb()),b.release()}; g.h.Zq=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Zq()}; g.h.yr=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.yr()}; g.h.Nx=function(a,b){var c=this.u[this.j];b.layoutId!==CY(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.Ed(),c.Jb(),{requestingSlot:a,requestingLayout:b}):DY(this,c.Ed(),c.Jb(),"skipped")}; g.h.jn=function(){-1===this.j&&KPa(this)}; g.h.LY=function(a,b){UV(this.B,a,b)}; g.h.wp=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.lf(a.Jb(),b),this.D=function(){c.callback.Xc(c.slot,c.layout,b)}):this.callback.Xc(this.slot,this.layout,b)}; g.h.Mc=function(a,b){var c=this.u[this.j];c&&c.Mc(a,b)}; g.h.Xc=function(a,b,c){AY.prototype.Xc.call(this,a,b,c);var d=this.u[this.j];d&&d.Xc(a,b,c)}; g.h.IN=function(){var a=this.u[this.j];a&&a.EA()}; g.h.Th=function(a){var b=this.u[this.j];b&&b.Th(a)}; g.h.JO=function(a){var b=this.u[this.j];b&&b.Wi(a)}; g.h.Gf=function(a,b){-1===this.j&&(this.callback.Mc(this.slot,this.layout),this.j++);var c=this.u[this.j];c?c.zx(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Jb().layoutId})}; g.h.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)}; g.h.pg=function(a){var b=this.u[this.j];b&&b.pg(a)}; g.h.Si=function(a){var b=this.u[this.j];b&&b.Si(a)}; g.h.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()}; g.h.OY=function(a,b,c){DY(this,a,b,c)}; g.h.MY=function(a,b){DY(this,a,b,"error")};g.v(IY,g.G);g.h=IY.prototype;g.h.Ed=function(){return this.slot}; g.h.Jb=function(){return this.layout}; g.h.init=function(){var a=X(this.layout.Ea,"metadata_type_video_length_seconds"),b=X(this.layout.Ea,"metadata_type_active_view_traffic_type");kX(this.ma.get(),this.layout.layoutId,b,a,this);qX(this.Sa.get(),this);this.Lo()}; g.h.release=function(){lX(this.ma.get(),this.layout.layoutId);rX(this.Sa.get(),this);this.kp()}; g.h.Zq=function(){}; g.h.yr=function(){}; g.h.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new NV("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",Qwa(this.Ia.get(),1)?DW(this.Ka.get(),"html5_fix_csi_event_order_in_pacf")?(this.J(-1),this.jn(a),this.eq(!1)):(this.eq(!1),this.J(-1),this.jn(a)):this.zx("ui_unstable",new NV("Failed to render media layout because ad ui unstable.")))}; g.h.Mc=function(a,b){if(b.layoutId===this.layout.layoutId){this.u="rendering";oY(this.j,"impression");oY(this.j,"start");if(this.Ga.get().isMuted()){oY(this.j,"mute");var c;a=(null==(c=HY(this))?void 0:c.muteCommands)||[];this.B.get().Kd(a,this.layout.layoutId)}if(this.Ga.get().isFullscreen()){this.j.mf("fullscreen");var d;c=(null==(d=HY(this))?void 0:d.fullscreenCommands)||[];this.B.get().Kd(c,this.layout.layoutId)}this.N=this.Ga.get().isMuted()||0===this.Ga.get().getVolume();JY(this,"unmuted_impression"); JY(this,"unmuted_start");this.Ga.get().isFullscreen()&&LY(this,"unmuted_fullscreen");this.ud.get().NH();this.J(1);this.wO();var e;d=(null==(e=HY(this))?void 0:e.impressionCommands)||[];this.B.get().Kd(d,this.layout.layoutId)}}; g.h.zx=function(a,b,c){this.Ha={GC:3,Qy:"load_timeout"===a?402:400,errorMessage:b.message};X(this.layout.Ea,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.Ed(),this.Jb(),{playerType:String(c)});oY(this.j,"error");JY(this,"unmuted_error");var d;a=(null==(d=HY(this))?void 0:d.errorCommands)||[];this.B.get().Kd(a,this.layout.layoutId);this.callback.Gf(this.slot,this.layout,b)}; g.h.EA=function(){this.K()}; g.h.EM=function(){if("rendering"===this.u){DW(this.Ka.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")?oY(this.j,"pause"):this.j.mf("pause");LY(this,"unmuted_pause");var a,b=(null==(a=HY(this))?void 0:a.pauseCommands)||[];this.B.get().Kd(b,this.layout.layoutId);this.J(2)}}; g.h.FM=function(){if("rendering"===this.u){DW(this.Ka.get(),"html5_eanble_pacf_player_bytes_with_externaly_managed_ad_notify")?oY(this.j,"resume"):this.j.mf("resume");LY(this,"unmuted_resume");var a,b=(null==(a=HY(this))?void 0:a.resumeCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.lf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Gf(this.slot,a,new NV("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.X=b,this.wp(a,b))}; g.h.Xc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.X=void 0,(a="normal"!==c||this.position+1===this.Da)&&this.eq(a),this.xO(c),this.J(0),c){case "abandoned":if(qY(this.j,"impression")){oY(this.j,"abandon");JY(this,"unmuted_abandon");var d,e=(null==(d=HY(this))?void 0:d.abandonCommands)||[];this.B.get().Kd(e,this.layout.layoutId)}break;case "normal":oY(this.j,"complete");JY(this,"unmuted_complete");d=(null==(e=HY(this))?void 0:e.completeCommands)||[];this.B.get().Kd(d, this.layout.layoutId);break;case "skipped":oY(this.j,"skip");var f;d=(null==(f=HY(this))?void 0:f.skipCommands)||[];this.B.get().Kd(d,this.layout.layoutId)}}; g.h.Ow=function(){return this.layout.layoutId}; g.h.cF=function(){return this.Ha}; g.h.Wi=function(a){if("not_rendering"!==this.u){this.xa||(a=new g.pF(a.state,new g.kH),this.xa=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&FY(a)&&this.va():b?g.rF(a,2)?this.SJ():(FY(a)?this.J(1):g.rF(a,4)&&!g.rF(a,2)&&this.EM(),0>qF(a,4)&&!(0>qF(a,2))&&this.FM()):this.EA()}}; g.h.Ex=function(){if("rendering"===this.u){oY(this.j,"active_view_measurable");var a,b=(null==(a=HY(this))?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.Dx=function(){if("rendering"===this.u){oY(this.j,"active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=HY(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.Fx=function(){if("rendering"===this.u){oY(this.j,"active_view_viewable");var a,b=(null==(a=HY(this))?void 0:a.activeViewViewableCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.Bx=function(){if("rendering"===this.u){oY(this.j,"audio_audible");var a,b=(null==(a=HY(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.Cx=function(){if("rendering"===this.u){oY(this.j,"audio_measurable");var a,b=(null==(a=HY(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}}; g.h.eq=function(a){this.ud.get().eq(X(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.Da,!1)}; g.h.onFullscreenToggled=function(a){if("rendering"===this.u)if(a){this.j.mf("fullscreen");LY(this,"unmuted_fullscreen");var b,c=(null==(b=HY(this))?void 0:b.fullscreenCommands)||[];this.B.get().Kd(c,this.layout.layoutId)}else this.j.mf("end_fullscreen"),LY(this,"unmuted_end_fullscreen"),b=(null==(c=HY(this))?void 0:c.endFullscreenCommands)||[],this.B.get().Kd(b,this.layout.layoutId)}; g.h.onVolumeChange=function(){if("rendering"===this.u)if(this.Ga.get().isMuted()){oY(this.j,"mute");JY(this,"unmuted_mute");var a,b=(null==(a=HY(this))?void 0:a.muteCommands)||[];this.B.get().Kd(b,this.layout.layoutId)}else oY(this.j,"unmute"),JY(this,"unmuted_unmute"),a=(null==(b=HY(this))?void 0:b.unmuteCommands)||[],this.B.get().Kd(a,this.layout.layoutId)}; g.h.pg=function(){}; g.h.Si=function(){}; g.h.Xj=function(){};g.v(NY,IY);g.h=NY.prototype;g.h.Lo=function(){}; g.h.kp=function(){var a=this.Sa.get();a.oC===this&&(a.oC=null);hX(this.Ka.get())?this.D.stop():this.timer.stop()}; g.h.jn=function(){DW(this.Ka.get(),"enable_post_ad_perception_survey_in_desktop")&&uPa(this.Ga.get());this.Sa.get().oC=this;OG();this.va()}; g.h.wO=function(){PPa(this)}; g.h.SJ=function(){}; g.h.Zq=function(){hX(this.Ka.get())?this.D.stop():this.timer.stop();IY.prototype.EM.call(this)}; g.h.yr=function(){PPa(this);IY.prototype.FM.call(this)}; g.h.Am=function(){return X(this.Jb().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.h.wp=function(){hX(this.Ka.get())?this.D.stop():this.timer.stop()}; g.h.Pb=function(){var a=Date.now(),b=a-this.Z;this.Z=a;this.C+=b;this.C>=this.Am()?(this.C=this.Am(),KY(this,this.C/1E3,!0),MY(this,this.C),this.K()):(KY(this,this.C/1E3),MY(this,this.C))}; g.h.xO=function(){}; g.h.Th=function(){};g.v(OY,IY);g.h=OY.prototype;g.h.Lo=function(){X(this.Jb().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=X(this.Jb().Ea,"metadata_type_shrunken_player_bytes_config")}; g.h.kp=function(){X(this.Jb().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.Z.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()}; g.h.jn=function(a){var b=X(a.Ea,"metadata_type_ad_video_id"),c=X(a.Ea,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ra.get().I.V().Z.add(b,{hw:c});(b=X(a.Ea,"metadata_type_sodar_extension_data"))&&xPa(this.Pa.get(),b);vPa(this.Ga.get(),!1);b=this.Wd.get();a=X(a.Ea,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Wd.get().I.playVideo(2)}; g.h.wO=function(){this.D.stop();this.C="adcompletioncuerange:"+this.Jb().layoutId;this.Z.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=kw(this.ra.get(),2))?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Pc.get().Na("onAdStart",this.adCpn)}; g.h.SJ=function(){this.K()}; g.h.Am=function(){var a;return null==(a=kw(this.ra.get(),2))?void 0:a.playbackDurationMs}; g.h.aC=function(){this.j.mf("clickthrough")}; g.h.wp=function(){this.D.stop();vPa(this.Ga.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ga.get().Bu(!1)}; g.h.onCueRangeEnter=function(a){a!==this.C?T("Received CueRangeEnter signal for unknown layout.",this.Ed(),this.Jb(),{cueRangeId:a}):(this.Z.get().removeCueRange(this.C),this.C=void 0,a=X(this.Jb().Ea,"metadata_type_video_length_seconds"),KY(this,a,!0),oY(this.j,"complete"))}; g.h.xO=function(a){"abandoned"!==a&&this.Pc.get().Na("onAdComplete");this.Pc.get().Na("onAdEnd",this.adCpn)}; g.h.onCueRangeExit=function(){}; g.h.Th=function(a){"rendering"===this.u&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ga.get().Bu(!0),KY(this,a))};g.v(PY,AY);g.h=PY.prototype;g.h.Ed=function(){return this.j.Ed()}; g.h.Jb=function(){return this.j.Jb()}; g.h.Lo=function(){this.j.init()}; g.h.kp=function(){this.j.release()}; g.h.Zq=function(){this.j.Zq()}; g.h.yr=function(){this.j.yr()}; g.h.Nx=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Ed(),this.Jb(),{requestingSlot:a,requestingLayout:b})}; g.h.jn=function(a){this.j.startRendering(a)}; g.h.wp=function(a,b){this.j.lf(a,b)}; g.h.Mc=function(a,b){this.j.Mc(a,b)}; g.h.Xc=function(a,b,c){AY.prototype.Xc.call(this,a,b,c);this.j.Xc(a,b,c);b.layoutId===this.Jb().layoutId&&this.ud.get().Du()}; g.h.IN=function(){this.j.EA()}; g.h.Th=function(a){this.j.Th(a)}; g.h.JO=function(a){this.j.Wi(a)}; g.h.Gf=function(a,b,c){this.j.zx(a,b,c)}; g.h.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)}; g.h.pg=function(a){this.j.pg(a)}; g.h.Si=function(a){this.j.Si(a)}; g.h.onVolumeChange=function(){this.j.onVolumeChange()};QY.prototype.ye=function(a,b,c,d){if(a=SPa(a,b,c,d,this.Fe,this.J,this.Sa,this.D,this.N,this.Wd,this.K,this.Ga,this.B,this.ud,this.Pc,this.j,this.u,this.C,this.Ka))return a;throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.v(RY,g.G);g.h=RY.prototype;g.h.zO=function(a){if(this.j)TPa(this,this.j,a);else{var b;null==(b=this.B)||b.get().ep(a.identifier)}}; g.h.qO=function(){}; g.h.qh=function(a){this.j&&this.j.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.h.Zj=function(a){this.j&&this.j.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null}; g.h.qa=function(){g.G.prototype.qa.call(this);this.j=null};g.v(SY,g.G);g.h=SY.prototype;g.h.Mc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&CF(b,this.N)){var d=kw(this.C.get(),2),e=this.J(b,d);e?jw(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[$Oa(c.u.get(),e.contentCpn,e.Ju,function(k){return c.K(k.slotId,"core",e,vV(c.j.get(),k))},e.VM)]; e.instreamAdPlayerUnderlayRenderer&&iPa(c.Ka.get())&&f.push(UPa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.h.uh=function(){}; g.h.Yi=function(){}; g.h.tf=function(){}; g.h.Xi=function(){}; g.h.uf=function(){}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(){}; g.h.Vi=function(){}; g.h.Vh=function(){}; g.h.Xc=function(){};var QZ=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.h=YPa.prototype;g.h.init=function(){}; g.h.Ed=function(){return this.slot}; g.h.cA=function(){this.callback.tf(this.slot)}; g.h.dA=function(){this.callback.uf(this.slot)}; g.h.release=function(){};UY.prototype.ye=function(a,b){return new YPa(a,b)};g.h=ZPa.prototype;g.h.init=function(){}; g.h.Ed=function(){return this.slot}; g.h.cA=function(){vX(this.Ga.get(),"ad-showing");this.callback.tf(this.slot)}; g.h.dA=function(){this.callback.uf(this.slot);wX(this.Ga.get(),"ad-showing")}; g.h.release=function(){};g.h=$Pa.prototype;g.h.init=function(){}; g.h.Ed=function(){return this.slot}; g.h.cA=function(){vX(this.Ga.get(),"ad-showing");vX(this.Ga.get(),"ad-interrupting");this.u=this.Ga.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.tf(this.slot)}; g.h.dA=function(){wX(this.Ga.get(),"ad-showing");wX(this.Ga.get(),"ad-interrupting");var a=this.u?Infinity:this.Ga.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ga.get().I.seekTo(a,void 0,void 0,1);this.callback.uf(this.slot)}; g.h.release=function(){};g.h=aQa.prototype;g.h.init=function(){}; g.h.Ed=function(){return this.slot}; g.h.cA=function(){vX(this.Ga.get(),"ad-showing");vX(this.Ga.get(),"ad-interrupting");this.callback.tf(this.slot)}; g.h.dA=function(){this.Ga.get().mq();wX(this.Ga.get(),"ad-showing");wX(this.Ga.get(),"ad-interrupting");this.callback.uf(this.slot)}; g.h.release=function(){this.Ga.get().mq()};VY.prototype.ye=function(a,b){if(mw(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new ZPa(a,b,this.Ga);if(b.Ob instanceof HW&&mw(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new $Pa(a,b,this.Ga);if(mw(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new aQa(a,b,this.Ga);throw new XV("Unsupported slot with type "+b.slotType+" and client metadata: "+(qV(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.v(XY,g.G);XY.prototype.j=function(a){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof qW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Pe===a&&b.push(d)}b.length?VV(this.sD(),b):T("Mute requested but no registered triggers can be activated.")};g.v(YY,XY);g.h=YY.prototype;g.h.Bf=function(a,b){if(b)if("survey-submit"===a)bQa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof qW&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Pe===b&&a.push(d)}a.length&&VV(this.sD(),a)}else"survey-single-select-answer-button"===a&&bQa(this,b)}; g.h.DF=function(a){XY.prototype.j.call(this,a)}; g.h.dj=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof rW||b instanceof qW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Lb.set(b.triggerId,new WY(a,b,c,d))}; g.h.qj=function(a){this.Lb.delete(a.triggerId)}; g.h.BF=function(){}; g.h.AF=function(){}; g.h.FA=function(){};g.v(ZY,g.G);g.h=ZY.prototype; g.h.dj=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof TW||b instanceof UW||b instanceof VW||b instanceof WW||b instanceof XW||b instanceof LW||b instanceof QW||b instanceof pW||b instanceof yW||b instanceof KW||b instanceof PW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new WY(a,b,c,d);this.Lb.set(b.triggerId,a);b instanceof XW&&this.D.has(b.Tg)&& VV(this.j(),[a]);b instanceof TW&&this.B.has(b.Tg)&&VV(this.j(),[a]);b instanceof QW&&this.u.has(b.Pe)&&VV(this.j(),[a])}; g.h.qj=function(a){this.Lb.delete(a.triggerId)}; g.h.uh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof XW&&a.slotId===d.trigger.Tg&&b.push(d);0qF(a,16)){a=g.r(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.j.clear()}}; g.h.Th=function(){}; g.h.onFullscreenToggled=function(){}; g.h.pg=function(){}; g.h.Si=function(){}; g.h.onVolumeChange=function(){}; g.h.Xj=function(){};g.v(cZ,g.G);g.h=cZ.prototype;g.h.dj=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof uW||b instanceof SW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Lb.set(b.triggerId,new WY(a,b,c,d))}; g.h.qj=function(a){this.Lb.delete(a.triggerId)}; g.h.Un=function(){}; g.h.dl=function(){}; g.h.Mc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.j?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.j=b.layoutId)}; g.h.Xc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(this.j=null)}; g.h.uh=function(){}; g.h.Yi=function(){}; g.h.Xi=function(){}; g.h.tf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)}; g.h.uf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.slotType&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(){}; g.h.Vi=function(){}; g.h.Vh=function(){}; g.h.Qz=function(){null!=this.j&&EY(this,this.j)}; g.h.gA=function(a){if(null===this.u){for(var b=[],c=g.r(this.Lb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof SW&&d.trigger.slotId===a&&b.push(d);b.length&&VV(this.B(),b)}};g.v(dZ,g.G);g.h=dZ.prototype;g.h.Vh=function(a,b){for(var c=[],d=g.r(this.Lb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&VV(this.j(),c)}; g.h.dj=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof ROa))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Lb.set(b.triggerId,new WY(a,b,c,d))}; g.h.qj=function(a){this.Lb.delete(a.triggerId)}; g.h.uh=function(){}; g.h.Yi=function(){}; g.h.Xi=function(){}; g.h.tf=function(){}; g.h.uf=function(){}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(){}; g.h.Vi=function(){}; g.h.Mc=function(){}; g.h.Xc=function(){};g.v(eZ,g.G);eZ.prototype.qa=function(){this.C.get().removeListener(this);g.G.prototype.qa.call(this)};g.v(fZ,g.G);fZ.prototype.qa=function(){this.D.get().removeListener(this);g.G.prototype.qa.call(this)};gZ.prototype.fetch=function(a){var b=a.ML;return this.Tp.fetch(a.IQ,{nw:void 0===a.nw?void 0:a.nw,Cd:b}).then(function(c){return eQa(c,b)})};g.v(hZ,g.G);g.h=hZ.prototype;g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.onAdUxClicked=function(a,b){iZ(this,function(c){c.Bf(a,b)})}; g.h.DG=function(a){iZ(this,function(b){b.BF(a)})}; g.h.CG=function(a){iZ(this,function(b){b.AF(a)})}; g.h.xW=function(a){iZ(this,function(b){b.FA(a)})};g.v(jZ,g.G);g.h=jZ.prototype;g.h.qh=function(){this.C=new aH(this,hPa(this.Ka.get()));this.u=new bH;var a=this.I.getVideoData(1),b;if((null==(b=this.j)?void 0:b.clientPlaybackNonce)!==a.clientPlaybackNonce){null!=this.j&&this.j.unsubscribe("cuepointupdated",this.sB,this);a.subscribe("cuepointupdated",this.sB,this);this.j=a;this.B.clear();this.wC.length=0;var c;a=(null==(c=a.j)?void 0:yta(c,0))||[];this.sB(a)}}; g.h.Zj=function(){}; g.h.addListener=function(a){this.listeners.push(a)}; g.h.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.h.YG=function(a){this.wC.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.zO(a)}; g.h.rO=function(a){g.sc(this.u.j,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.qO(a)}; g.h.sB=function(a){var b=kw(this.D.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,!b&&g.MC(this.I.V())||pX(this.Sa.get(),{cuepointTrigger:{event:gQa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.Hu,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.B.add(e),b?this.C.reduce(e):g.MC(this.I.V())||0===this.I.getCurrentTime(1)||"start"!==e.event||this.YG(e)}; g.h.qa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.sB,this),this.j=null);this.listeners.length=0;this.B.clear();this.wC.length=0;g.G.prototype.qa.call(this)};mZ.prototype.addListener=function(a){this.listeners.push(a)}; mZ.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.h=nZ.prototype;g.h.Ed=function(){return this.slot}; g.h.Jb=function(){return this.layout}; g.h.init=function(){this.D.get().addListener(this);this.Ga.get().addListener(this);this.Lo();var a=X(this.layout.Ea,"metadata_type_layout_enter_ms"),b=X(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.B.get().kq)?void 0:c.clientPlaybackNonce;c=this.layout.yc.adClientDataEntry;pX(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.D.get();e=cH(e.u,a,b);null!==e&&(pX(this.Sa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER", adClientData:c}}),this.K.get().gq(e,b))}; g.h.release=function(){this.kp();this.D.get().removeListener(this);this.Ga.get().removeListener(this)}; g.h.startRendering=function(){this.jn();this.callback.Mc(this.slot,this.layout)}; g.h.lf=function(a,b){this.wp(b);null!==this.driftRecoveryMs&&(oZ(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(iQa(this)-X(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().I.uo()).toString()}),this.driftRecoveryMs=null);this.callback.Xc(this.slot,this.layout,b)}; g.h.zO=function(){}; g.h.qO=function(a){var b=X(this.layout.Ea,"metadata_type_layout_enter_ms"),c=X(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&xZ(this.B,this.layout)}; g.h.onVolumeChange=function(){}; g.h.Th=function(){}; g.h.onFullscreenToggled=function(){}; g.h.pg=function(){}; g.h.Wi=function(){}; g.h.Xj=function(){}; g.h.qa=function(){sY.prototype.qa.call(this)}; g.h.release=function(){sY.prototype.release.call(this);this.Ga.get().removeListener(this)};OQa.prototype.ye=function(a,b,c,d){if(b=yY(a,c,d,this.j,this.Ga,this.Sa,this.K,this.u))return b;if(jY(d,NQa()))return new MZ(c,d,this.Sa,this.D,this.j,a,this.B,this.J,this.Ga,this.C,this.Ka,this.u,new NZ(this.Ga));if(jY(d,MQa()))return new LZ(c,d,this.Sa,this.D,this.j,a,this.B,this.Ga,this.C,this.Ka,this.u,new NZ(this.Ga));if(jY(d,{Vd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ue:["LAYOUT_TYPE_SURVEY"]}))return new OZ(c,d,a,this.j,this.B,this.Ga,this.Ka);if(jY(d,{Vd:["metadata_type_player_bytes_layout_controls_callback_ref", "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ue:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new FZ(c,d,a,this.j,this.Sa);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.v(PZ,g.G);g.h=PZ.prototype;g.h.dj=function(a,b,c,d){if(this.Lb.has(b.triggerId))throw new XV("Tried to register duplicate trigger for slot.");if(!(b instanceof xW))throw new XV("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Lb.set(b.triggerId,new WY(a,b,c,d));a=this.j.has(b.Pe)?this.j.get(b.Pe):new Set;a.add(b);this.j.set(b.Pe,a)}; g.h.qj=function(a){this.Lb.delete(a.triggerId);if(!(a instanceof xW))throw new XV("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.Pe))b.delete(a),0===b.size&&this.j.delete(a.Pe)}; g.h.uh=function(){}; g.h.Yi=function(){}; g.h.Xi=function(){}; g.h.tf=function(){}; g.h.uf=function(){}; g.h.dk=function(){}; g.h.ek=function(){}; g.h.Ui=function(){}; g.h.Vi=function(){}; g.h.Vh=function(){}; g.h.Mc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Xu:a.Xu},d=b.next())a.Xu=d.value,d=new g.L(function(e){return function(){var f=c.Lb.get(e.Xu.triggerId);VV(c.B(),[f])}}(a),a.Xu.durationMs),d.start(),this.u.set(a.Xu.triggerId,d)}}; g.h.Xc=function(){};g.v(QQa,g.G);RQa.prototype.ye=function(a,b,c,d){if(b=yY(a,c,d,this.u,this.Ga,this.Sa,this.K,this.j))return b;if(jY(d,NQa()))return new MZ(c,d,this.Sa,this.D,this.u,a,this.B,this.J,this.Ga,this.C,this.Ka,this.j,new NZ(this.Ga));if(jY(d,MQa()))return new LZ(c,d,this.Sa,this.D,this.u,a,this.B,this.Ga,this.C,this.Ka,this.j,new NZ(this.Ga));throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.v(SQa,g.G);g.v(TQa,g.G);g.v(UQa,g.G);g.v(RZ,xY);RZ.prototype.startRendering=function(a){xY.prototype.startRendering.call(this,a);X(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.K.get().I.Na("onAdMetadataAvailable",a))};WQa.prototype.ye=function(a,b,c,d){if(jY(d,VQa()))return new RZ(a,c,d,this.B,this.Ga,this.Sa,this.C,this.u,this.j);throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.v(XQa,g.G);YQa.prototype.ye=function(a,b,c,d){if(jY(d,VQa()))return new RZ(a,c,d,this.u,this.Ga,this.Sa,this.B,this.C,this.j);if(a=yY(a,c,d,this.u,this.Ga,this.Sa,this.B,this.j))return a;throw new NV("Unsupported layout with type: "+d.layoutType+" and client metadata: "+qV(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.v(ZQa,g.G);g.v(SZ,g.G);SZ.prototype.B=function(){return this.u};UZ.prototype.gA=function(a){this.Sk.gA(a)}; UZ.prototype.Qz=function(){try{this.Sk.Qz()}catch(a){}}; UZ.prototype.Un=function(){this.j().Un()}; UZ.prototype.dl=function(){this.j().dl()};g.v(VZ,HI); VZ.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:this.j.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.Na("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Na("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.u,interactionLoggingClientData:b.j});break;case 3:b=this.j.getVideoData(1),this.j.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Na("updateEngagementPanelAction",b.addAction);this.j.Na("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.Na("changeEngagementPanelVisibility",b.hideAction),this.j.Na("updateEngagementPanelAction",b.removeAction)}};g.v(WZ,PI);g.h=WZ.prototype;g.h.init=function(a,b,c){PI.prototype.init.call(this,a,b,c);g.Dm(this.C,"stroke-dasharray","0 "+this.B);this.show()}; g.h.clear=function(){this.hide()}; g.h.hide=function(){RI(this);PI.prototype.hide.call(this)}; g.h.show=function(){QI(this);PI.prototype.show.call(this)}; g.h.ir=function(){this.hide()}; g.h.ip=function(){if(this.u){var a=this.u.getProgressState();null!=a&&null!=a.current&&g.Dm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.v(XZ,iI);g.h=XZ.prototype; g.h.init=function(a,b,c){iI.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.S(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!= e&&0=this.C?(this.J.hide(),this.N=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.Z&&(OI(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.v(e_,iI);g.h=e_.prototype; g.h.init=function(a,b,c){iI.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.C.init(EE("ad-image"),b.image,c),this.u.init(EE("ad-text"),b.headline,c),this.D.init(EE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().S("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new xI(this.api,this.eb,this.layoutId,this.j,this.jb,a),g.H(this, this.actionButton),this.actionButton.Ba(this.J),this.actionButton.init(EE("button"),b.actionButton.buttonRenderer,c),b=g.XA(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().S("place_shrunken_video_on_left_of_player")?(c=this.B,g.wp(c,"ytp-ad-underlay-left-container"),g.M(c,"ytp-ad-underlay-right-container"),g.Dm(this.B,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.B,g.wp(c,"ytp-ad-underlay-right-container"),g.M(c,"ytp-ad-underlay-left-container")),g.Dm(this.B,"width", Math.round(100*(1-b-.04))+"%"),this.api.UA()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.TJ.bind(this)),this.api.addEventListener("resize",this.JM.bind(this))):g.S(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.S(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.h.show=function(){jRa(!0);this.actionButton&&this.actionButton.show();iI.prototype.show.call(this)}; g.h.hide=function(){jRa(!1);this.actionButton&&this.actionButton.hide();iI.prototype.hide.call(this)}; g.h.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.TJ.bind(this));this.api.removeEventListener("resize",this.JM.bind(this));this.hide()}; g.h.onClick=function(a){iI.prototype.onClick.call(this,a);this.actionButton&&g.di(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.h.TJ=function(a){"transitioning"===a?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-transition"),this.show()):"visible"===a?this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"):"hidden"===a&&(this.hide(),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-transition"))}; g.h.JM=function(a){1200a)g.S(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){rRa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape); rRa(this.logoImage,b.brandImage);g.ei(this.text,g.Jw(b.text));this.actionButton=new xI(this.api,this.eb,this.layoutId,this.j,this.jb,["ytp-ad-survey-interstitial-action-button"]);g.H(this,this.actionButton);this.actionButton.Ba(this.B);this.actionButton.init(EE("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands;this.u=this.Pg?new dJ(this.api,1E3*a):new eJ(1E3*a,void 0);this.u.subscribe("g",function(){d.transition.hide();if(!d.Pg){for(var k=g.r(e),l=k.next();!l.done;l= k.next())JI(d.jb,l.value,c);JI(d.jb,{adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}}); g.H(this,this.u);this.T(this.element,"click",function(k){var l=b.dismissCommands,m=k.target===d.interstitial;k=d.actionButton.element.contains(k.target);if(m||k)if(d.transition.hide(),m)if(d.YH)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())JI(d.jb,m.value,d.macros)}); this.transition.show(100);if(!this.Pg&&b.impressionCommands){a=g.r(b.impressionCommands);for(var f=a.next();!f.done;f=a.next())JI(this.jb,f.value,c)}}else g.S(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.S(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.S(Error("SurveyTextInterstitialRenderer has no button."));else g.S(Error("SurveyTextInterstitialRenderer has no text."));else g.S(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; o_.prototype.clear=function(){this.hide()}; o_.prototype.show=function(){sRa(!0);iI.prototype.show.call(this)}; o_.prototype.hide=function(){sRa(!1);iI.prototype.hide.call(this)};var VTa="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.v(p_,HI); p_.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!VTa.includes(d))switch(a.actionType){case 1:a=this.K();var e=this.api,f=this.jb,k=c.layoutId,l=c.j,m=c instanceof wF||c instanceof MG||c instanceof RG?c.Pg:!1,n=c instanceof wF||c instanceof cJ||c instanceof MG?c.jj:!1,p=c instanceof RG?c.YH:!1;l=void 0===l?{}:l;m=void 0===m?!1:m;n=void 0===n?!1:n;p=void 0===p?!1:p;switch(d){case "invideo-overlay":a=new YZ(e,a,k,l,f);break;case "player-overlay":a=new oJ(e,a,k,l,f,new cM(e),n); break;case "survey":a=new n_(e,a,k,l,f,m,n);break;case "ad-action-interstitial":a=new XZ(e,a,k,l,f,m,n);break;case "survey-interstitial":a=new o_(e,a,k,l,f,m,p);break;case "ad-message":a=new d_(e,a,k,l,f,new cM(e,1));break;case "player-underlay":a=new e_(e,a,k,l,f);break;default:a=null}if(!a){g.Mv(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Yf(this.u,b)?g.Mv(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof DZ?this.B?this.B.append(a.HH): g.S(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.HH);break;case 2:b=tRa(this,a);if(null==b)break;b.bind(c);break;case 3:c=tRa(this,a),null!=c&&(g.zf(c),g.Yf(this.u,b)?g.dg(this.u,b):g.Mv(Error("Ad UI component does not exist: "+b)))}}; p_.prototype.qa=function(){g.Af(Object.values(this.u));this.u={};HI.prototype.qa.call(this)};g.v(q_,g.jL);g.h=q_.prototype;g.h.create=function(){if(dW(TZ(this.j).Rf))try{uRa(this),this.load(),this.created=!0,uRa(this)}catch(a){T(a instanceof Error?a:String(a))}else this.load(),this.created=!0}; g.h.load=function(){g.jL.prototype.load.call(this);var a=TZ(this.j).Rf;wqa(a.I.V().S("html5_reduce_ecatcher_errors"));if(dW(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var k=c&&c.Df()||!1;a=xRa(f,a,e,k,TZ(this.j).Oj);f=c&&c.clientPlaybackNonce||"";c=c&&c.fq||!1;k=1E3*this.player.getDuration(1);this.eb=new ZH(this,this.player,this.Tp,b,TZ(this.j));Bza(this.eb,a.ew);this.j.j.Yo.qh(f,k,c,a.GB,a.GB.concat(a.ew),e,d);$H(this.eb)}; g.h.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Yo.Zj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.h.unload=function(){g.jL.prototype.unload.call(this);wqa(!1);if(dW(TZ(this.j).Rf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.eb){var a=this.eb;this.eb=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Tp.reset()}; g.h.Zh=function(){return!1}; g.h.ZH=function(){return null===this.eb?!1:this.eb.ZH()}; g.h.Dl=function(a){null!==this.eb&&this.eb.Dl(a)}; g.h.getAdState=function(){return this.eb?this.eb.MA:-1}; g.h.getOptions=function(){return Object.values(UTa)}; g.h.xf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=XE(this.player),Object.assign(b,a.Oga),this.eb&&!b.AD_CPN&&(b.AD_CPN=this.eb.Fw()),a=g.gp(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Xo(b);break;case "executeCommand":this.executeCommand(b);break;default:return null}}; g.h.Xo=function(a){a.isMuted&&qza(this.eb,TZ(this.j).nh,TZ(this.j).Ri,a.layoutId);this.Hs&&this.Hs.Xo()}; g.h.executeCommand=function(a){TZ(this.j).jb.executeCommand(a.command,a.layoutId)}; g.h.Qj=function(){return null===this.eb?!1:this.eb.Qj()};g.iL("ad",q_);var zRa=g.Mc&&yRa();g.v(g.u_,g.W);g.u_.prototype.onClick=function(){this.I.Na("onExpandMiniplayer")};})(_yt_player); } /* FILE ARCHIVED ON 14:59:30 Mar 28, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 16:22:45 Feb 28, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.606 exclusion.robots: 0.022 exclusion.robots.policy: 0.01 esindex: 0.012 cdx.remote: 21.256 LoadShardBlock: 406.624 (6) PetaboxLoader3.datanode: 425.348 (8) PetaboxLoader3.resolve: 295.257 (3) load_resource: 413.914 (2) */